mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[DWARFYAML] Replace Is64bit with Is64BitAddrSize. NFC.
Is64bit is ambiguous. In this patch, we replace it with Is64BitAddrSize to make it clearer.
This commit is contained in:
parent
9f42c54bb4
commit
c3fbfc7970
@ -179,7 +179,7 @@ struct AddrTableEntry {
|
||||
|
||||
struct Data {
|
||||
bool IsLittleEndian;
|
||||
bool Is64bit;
|
||||
bool Is64BitAddrSize;
|
||||
std::vector<Abbrev> AbbrevDecls;
|
||||
std::vector<StringRef> DebugStrings;
|
||||
std::vector<ARange> ARanges;
|
||||
|
@ -168,7 +168,7 @@ Error DWARFYAML::emitDebugRanges(raw_ostream &OS, const DWARFYAML::Data &DI) {
|
||||
if (DebugRanges.AddrSize)
|
||||
AddrSize = *DebugRanges.AddrSize;
|
||||
else
|
||||
AddrSize = DI.Is64bit ? 8 : 4;
|
||||
AddrSize = DI.Is64BitAddrSize ? 8 : 4;
|
||||
for (auto Entry : DebugRanges.Entries) {
|
||||
if (Error Err = writeVariableSizedInteger(Entry.LowOffset, AddrSize, OS,
|
||||
DI.IsLittleEndian))
|
||||
@ -381,7 +381,7 @@ Error DWARFYAML::emitDebugAddr(raw_ostream &OS, const Data &DI) {
|
||||
if (TableEntry.AddrSize)
|
||||
AddrSize = *TableEntry.AddrSize;
|
||||
else
|
||||
AddrSize = DI.Is64bit ? 8 : 4;
|
||||
AddrSize = DI.Is64BitAddrSize ? 8 : 4;
|
||||
|
||||
uint64_t Length;
|
||||
if (TableEntry.Length)
|
||||
|
@ -1681,7 +1681,7 @@ void MappingTraits<ELFYAML::Object>::mapping(IO &IO, ELFYAML::Object &Object) {
|
||||
if (Object.DWARF) {
|
||||
Object.DWARF->IsLittleEndian =
|
||||
Object.Header.Data == ELFYAML::ELF_ELFDATA(ELF::ELFDATA2LSB);
|
||||
Object.DWARF->Is64bit =
|
||||
Object.DWARF->Is64BitAddrSize =
|
||||
Object.Header.Class == ELFYAML::ELF_ELFCLASS(ELF::ELFCLASS64);
|
||||
}
|
||||
IO.setContext(nullptr);
|
||||
|
@ -107,8 +107,8 @@ void MappingTraits<MachOYAML::Object>::mapping(IO &IO,
|
||||
Object.DWARF.IsLittleEndian = Object.IsLittleEndian;
|
||||
|
||||
IO.mapRequired("FileHeader", Object.Header);
|
||||
Object.DWARF.Is64bit = Object.Header.magic == MachO::MH_MAGIC_64 ||
|
||||
Object.Header.magic == MachO::MH_CIGAM_64;
|
||||
Object.DWARF.Is64BitAddrSize = Object.Header.magic == MachO::MH_MAGIC_64 ||
|
||||
Object.Header.magic == MachO::MH_CIGAM_64;
|
||||
IO.mapOptional("LoadCommands", Object.LoadCommands);
|
||||
if(!Object.LinkEdit.isEmpty() || !IO.outputting())
|
||||
IO.mapOptional("LinkEditData", Object.LinkEdit);
|
||||
|
Loading…
Reference in New Issue
Block a user