diff options
author | Eric Christopher <echristo@gmail.com> | 2014-03-08 00:29:41 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-03-08 00:29:41 +0000 |
commit | 4f17ee09f9597cde402322e971d682786364b1bf (patch) | |
tree | 1061dd206eccd3c213cfcea1b9c5f4f743669fde /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 664b32b814a38903ad4becd439dda1530e7f0827 (diff) | |
download | bcm5719-llvm-4f17ee09f9597cde402322e971d682786364b1bf.tar.gz bcm5719-llvm-4f17ee09f9597cde402322e971d682786364b1bf.zip |
Add support for hashing location information for CU level hashes.
Add a testcase based on sret.cpp where we can now hash the entire
compile unit.
llvm-svn: 203319
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 0dadb73562e..b8cfdd354b1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -588,9 +588,6 @@ class DwarfDebug : public AsmPrinterHandler { /// \brief Emit visible names into a debug str section. void emitDebugStr(); - /// \brief Emit an entry for the debug loc section. - void emitDebugLocEntry(ByteStreamer &Streamer, const DotDebugLocEntry &Entry); - /// \brief Emit visible names into a debug loc section. void emitDebugLoc(); @@ -761,6 +758,15 @@ public: /// Returns the section symbol for the .debug_loc section. MCSymbol *getDebugLocSym() const { return DwarfDebugLocSectionSym; } + /// Returns the entries for the .debug_loc section. + const SmallVectorImpl<DotDebugLocEntry> &getDebugLocEntries() const { + return DotDebugLocEntries; + } + + /// \brief Emit an entry for the debug loc section. This can be used to + /// handle an entry that's going to be emitted into the debug loc section. + void emitDebugLocEntry(ByteStreamer &Streamer, const DotDebugLocEntry &Entry); + /// Find the MDNode for the given reference. template <typename T> T resolve(DIRef<T> Ref) const { return Ref.resolve(TypeIdentifierMap); |