[llvm] 3421d1e - Make getCompileUnitForAddress public.

Sterling Augustine via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 16:51:41 PDT 2020


Author: Sterling Augustine
Date: 2020-04-28T16:51:23-07:00
New Revision: 3421d1ede4c1f4f9cb39d5319482c929c03f62fb

URL: https://github.com/llvm/llvm-project/commit/3421d1ede4c1f4f9cb39d5319482c929c03f62fb
DIFF: https://github.com/llvm/llvm-project/commit/3421d1ede4c1f4f9cb39d5319482c929c03f62fb.diff

LOG: Make getCompileUnitForAddress public.

Summary:
Certain dwarf information (like the compilation directory), are only
accessible from the compile unit. Make it available for use.

Subscribers: aprantl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79048

Added: 
    

Modified: 
    llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
index c448c5f690a3..e58a46bc9d0a 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
@@ -394,16 +394,17 @@ class DWARFContext : public DIContext {
     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);
 };


        


More information about the llvm-commits mailing list