diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-02-09 09:49:29 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-02-09 09:49:29 +0000 |
commit | 9aff95c940394f5f3004150081454a6098838e18 (patch) | |
tree | 3eee5bf479af5731fae8bef14029b66b787c072d /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | |
parent | 4a4d2b417564a09f01b0b6db6da3b4b3705bff4c (diff) | |
download | bcm5719-llvm-9aff95c940394f5f3004150081454a6098838e18.tar.gz bcm5719-llvm-9aff95c940394f5f3004150081454a6098838e18.zip |
Fix formatting introduced in r200941
llvm-svn: 201043
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index 3f42e2f6728..61a50a79364 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -534,6 +534,8 @@ private: }; class DwarfCompileUnit : public DwarfUnit { + unsigned statementListIndex; + public: DwarfCompileUnit(unsigned UID, DIE *D, DICompileUnit Node, AsmPrinter *A, DwarfDebug *DW, DwarfFile *DWU); @@ -545,6 +547,17 @@ public: /// addLabelAddress - Add a dwarf label attribute data and value using /// either DW_FORM_addr or DW_FORM_GNU_addr_index. void addLabelAddress(DIE *Die, dwarf::Attribute Attribute, MCSymbol *Label); + + void setStatementListIndex(unsigned statementListIndex) { + this->statementListIndex = statementListIndex; + } + + void initStatementList(DIE *D) const { + DIE *UD = getUnitDie(); + D->addValue(dwarf::DW_AT_stmt_list, + UD->getAbbrev().getData()[statementListIndex].getForm(), + UD->getValues()[statementListIndex]); + } }; class DwarfTypeUnit : public DwarfUnit { |