Skip to content

Commit

Permalink
[DWARFLinker] Fix typo and improve comments (NFC)
Browse files Browse the repository at this point in the history
Fix a typo and improve comments to match the LLVM coding style.
  • Loading branch information
JDevlieghere committed Feb 9, 2023
1 parent 26e9f23 commit e5906f6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions llvm/include/llvm/DWARFLinker/DWARFLinker.h
Expand Up @@ -205,22 +205,25 @@ class DwarfEmitter {

using UnitListTy = std::vector<std::unique_ptr<CompileUnit>>;

/// this class represents DWARF information for source file
/// and it`s address map.
/// This class represents DWARF information for source file
/// and its address map.
class DWARFFile {
public:
DWARFFile(StringRef Name, DWARFContext *Dwarf, AddressesMap *Addresses,
const std::vector<std::string> &Warnings)
: FileName(Name), Dwarf(Dwarf), Addresses(Addresses), Warnings(Warnings) {
}

/// object file name.
/// The object file name.
StringRef FileName;
/// source DWARF information.

/// The source DWARF information.
DWARFContext *Dwarf = nullptr;
/// helpful address information(list of valid address ranges, relocations).

/// Helpful address information(list of valid address ranges, relocations).
AddressesMap *Addresses = nullptr;
/// warnings for object file.

/// Warnings for this object file.
const std::vector<std::string> &Warnings;
};

Expand Down

0 comments on commit e5906f6

Please sign in to comment.