[PATCH] D79048: Make getCompileUnitForAddress public.
Sterling Augustine via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 15:40:43 PDT 2020
saugustine created this revision.
Herald added subscribers: llvm-commits, aprantl.
Herald added a project: LLVM.
saugustine added reviewers: dblaikie, echristo.
Certain dwarf information (like the compilation directory), are only
accessible from the compile unit. Make it available for use.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79048
Files:
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
Index: llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
===================================================================
--- llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
+++ llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
@@ -394,16 +394,17 @@
return getDWARFObj().getFile()->getArch();
}
-private:
- /// Parse a macro[.dwo] or macinfo[.dwo] section.
- std::unique_ptr<DWARFDebugMacro>
- parseMacroOrMacinfo(MacroSecType SectionType);
-
/// Return the compile unit which contains instruction with provided
/// address.
/// TODO: change input parameter from "uint64_t Address"
/// into "SectionedAddress Address"
DWARFCompileUnit *getCompileUnitForAddress(uint64_t Address);
+
+private:
+ /// Parse a macro[.dwo] or macinfo[.dwo] section.
+ std::unique_ptr<DWARFDebugMacro>
+ parseMacroOrMacinfo(MacroSecType SectionType);
+
void addLocalsForDie(DWARFCompileUnit *CU, DWARFDie Subprogram, DWARFDie Die,
std::vector<DILocal> &Result);
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79048.260783.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/6798b6aa/attachment.bin>
More information about the llvm-commits
mailing list