summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-12-14 22:34:03 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-12-14 22:34:03 +0000
commit61c127c1ad9f7e415e00e449d8f52af54896c007 (patch)
treef4b59c96fffdc82ca45b0040e9e066ea97ab4eab /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
parent26d994f56ed4a5b8ba4b8851334090242b06edd7 (diff)
downloadbcm5719-llvm-61c127c1ad9f7e415e00e449d8f52af54896c007.tar.gz
bcm5719-llvm-61c127c1ad9f7e415e00e449d8f52af54896c007.zip
DebugInfo: Move addAddrBase from DwarfUnit to DwarfCompileUnit
Only CUs need an address table reference. llvm-svn: 349203
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index 13679c37fe5..6e9490702c8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
@@ -243,6 +243,9 @@ public:
void emitHeader(bool UseOffsets) override;
+ /// Add the DW_AT_addr_base attribute to the unit DIE.
+ void addAddrTableBase();
+
MCSymbol *getLabelBegin() const {
assert(getSection());
return LabelBegin;
OpenPOWER on IntegriCloud