diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h +++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h @@ -66,7 +66,7 @@ std::unique_ptr Line; std::unique_ptr DebugFrame; std::unique_ptr EHFrame; - std::unique_ptr Macro; + std::unique_ptr Macinfo; std::unique_ptr Names; std::unique_ptr AppleNames; std::unique_ptr AppleTypes; @@ -75,7 +75,7 @@ DWARFUnitVector DWOUnits; std::unique_ptr AbbrevDWO; - std::unique_ptr MacroDWO; + std::unique_ptr MacinfoDWO; /// The maximum DWARF version of all units. unsigned MaxVersion = 0; @@ -273,10 +273,10 @@ const DWARFDebugFrame *getEHFrame(); /// Get a pointer to the parsed DebugMacro object. - const DWARFDebugMacro *getDebugMacro(); + const DWARFDebugMacro *getDebugMacinfo(); - /// Get a pointer to the parsed DebugMacroDWO object. - const DWARFDebugMacro *getDebugMacroDWO(); + /// Get a pointer to the parsed dwo DebugMacro object. + const DWARFDebugMacro *getDebugMacinfoDWO(); /// Get a reference to the parsed accelerator table object. const DWARFDebugNames &getDebugNames(); diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -442,12 +442,12 @@ if (shouldDump(Explicit, ".debug_macinfo", DIDT_ID_DebugMacro, DObj->getMacinfoSection())) { - getDebugMacro()->dump(OS); + getDebugMacinfo()->dump(OS); } if (shouldDump(Explicit, ".debug_macinfo.dwo", DIDT_ID_DebugMacro, DObj->getMacinfoDWOSection())) { - getDebugMacroDWO()->dump(OS); + getDebugMacinfoDWO()->dump(OS); } if (shouldDump(Explicit, ".debug_aranges", DIDT_ID_DebugAranges, @@ -808,25 +808,25 @@ return DebugFrame.get(); } -const DWARFDebugMacro *DWARFContext::getDebugMacroDWO() { - if (MacroDWO) - return MacroDWO.get(); +const DWARFDebugMacro *DWARFContext::getDebugMacinfoDWO() { + if (MacinfoDWO) + return MacinfoDWO.get(); DataExtractor MacinfoDWOData(DObj->getMacinfoDWOSection(), isLittleEndian(), 0); - MacroDWO.reset(new DWARFDebugMacro()); - MacroDWO->parse(MacinfoDWOData); - return MacroDWO.get(); + MacinfoDWO.reset(new DWARFDebugMacro()); + MacinfoDWO->parse(MacinfoDWOData); + return MacinfoDWO.get(); } -const DWARFDebugMacro *DWARFContext::getDebugMacro() { - if (Macro) - return Macro.get(); +const DWARFDebugMacro *DWARFContext::getDebugMacinfo() { + if (Macinfo) + return Macinfo.get(); DataExtractor MacinfoData(DObj->getMacinfoSection(), isLittleEndian(), 0); - Macro.reset(new DWARFDebugMacro()); - Macro->parse(MacinfoData); - return Macro.get(); + Macinfo.reset(new DWARFDebugMacro()); + Macinfo->parse(MacinfoData); + return Macinfo.get(); } template