diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-05 23:14:16 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-05 23:14:16 +0000 |
commit | e1a26a624d3612d98af13c47ee43f100bd458199 (patch) | |
tree | 44130f759367d47fd8f0a6506f8a5d2f527b5f1d /llvm/lib/CodeGen/AsmPrinter/DebugLocList.h | |
parent | 57fbc0c35fb143b0acce549f82e536ea4022634f (diff) | |
download | bcm5719-llvm-e1a26a624d3612d98af13c47ee43f100bd458199.tar.gz bcm5719-llvm-e1a26a624d3612d98af13c47ee43f100bd458199.zip |
DebugInfo: Move the reference to the CU from the location list entry to the list itself, since it is constant across an entire list.
This simplifies construction and usage while making the data structure
smaller. It was a holdover from the days when we didn't have a separate
DebugLocList and all we had was a flat list of DebugLocEntries.
llvm-svn: 214933
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugLocList.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugLocList.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugLocList.h b/llvm/lib/CodeGen/AsmPrinter/DebugLocList.h index 7a51c7bd5b0..542896c88e5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugLocList.h +++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocList.h @@ -10,13 +10,15 @@ #ifndef CODEGEN_ASMPRINTER_DEBUGLOCLIST_H__ #define CODEGEN_ASMPRINTER_DEBUGLOCLIST_H__ -#include "llvm/MC/MCSymbol.h" #include "llvm/ADT/SmallVector.h" #include "DebugLocEntry.h" namespace llvm { +class DwarfCompileUnit; +class MCSymbol; struct DebugLocList { MCSymbol *Label; + DwarfCompileUnit *CU; SmallVector<DebugLocEntry, 4> List; }; } |