diff options
author | Eric Christopher <echristo@gmail.com> | 2014-03-05 22:41:20 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-03-05 22:41:20 +0000 |
commit | a27220fb8c15e0e09cb2175b155e9a27852f2392 (patch) | |
tree | 2db8cc643d96aa20176fd1d1a38e68b1d135d5bf /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 3e373261667f848035ffecce72a4d03a65f21604 (diff) | |
download | bcm5719-llvm-a27220fb8c15e0e09cb2175b155e9a27852f2392.tar.gz bcm5719-llvm-a27220fb8c15e0e09cb2175b155e9a27852f2392.zip |
Add a DIELocList class to handle pointers into the location list.
This enables us to figure out where in the debug_loc section our
locations are so that we can eventually hash them. It also helps
remove some special case code in emission. No functional change.
llvm-svn: 203018
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 315544b5dfe..c74d76a06a1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -751,6 +751,9 @@ public: /// Returns the Dwarf Version. unsigned getDwarfVersion() const { return DwarfVersion; } + /// Returns the section symbol for the .debug_loc section. + MCSymbol *getDebugLocSym() const { return DwarfDebugLocSectionSym; } + /// Find the MDNode for the given reference. template <typename T> T resolve(DIRef<T> Ref) const { return Ref.resolve(TypeIdentifierMap); |