summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-23 21:20:10 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-23 21:20:10 +0000
commitd75fb28ae7f32f64e56511fdb54fe999a955ce37 (patch)
tree5aff0fb21ea9508f31ae3677f89774c89d24b41b /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parent8fb87eee17e1b0b590fcce846e51199042e46ff3 (diff)
downloadbcm5719-llvm-d75fb28ae7f32f64e56511fdb54fe999a955ce37.tar.gz
bcm5719-llvm-d75fb28ae7f32f64e56511fdb54fe999a955ce37.zip
Move the AddressPool from DwarfFile to DwarfDebug.
There's only ever one address pool, not one per DWARF output file, so let's just have one. (similar refactoring of the string pool to come soon) llvm-svn: 207026
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index a18246070c3..3a69538108d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -321,6 +321,8 @@ class DwarfDebug : public AsmPrinterHandler {
// True iff there are multiple CUs in this module.
bool SingleCU;
+ AddressPool AddrPool;
+
MCDwarfDwoLineTable *getDwoLineTable(const DwarfCompileUnit &);
void addScopeVariable(LexicalScope *LS, DbgVariable *Var);
@@ -631,6 +633,8 @@ public:
/// isSubprogramContext - Return true if Context is either a subprogram
/// or another context nested inside a subprogram.
bool isSubprogramContext(const MDNode *Context);
+
+ AddressPool &getAddressPool() { return AddrPool; }
};
} // End of namespace llvm
OpenPOWER on IntegriCloud