[llvm] r201095 - Remove some prototype code accidentally committed in r201043
David Blaikie
dblaikie at gmail.com
Mon Feb 10 08:49:07 PST 2014
Author: dblaikie
Date: Mon Feb 10 10:49:07 2014
New Revision: 201095
URL: http://llvm.org/viewvc/llvm-project?rev=201095&view=rev
Log:
Remove some prototype code accidentally committed in r201043
Thanks to Chandler for the catch.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=201095&r1=201094&r2=201095&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Feb 10 10:49:07 2014
@@ -771,7 +771,6 @@ DwarfCompileUnit *DwarfDebug::constructD
Asm->OutStreamer.hasRawTextSupport() || (NewCU->getUniqueID() == 0);
if (!useSplitDwarf()) {
- NewCU->setStatementListIndex(Die->getValues().size());
// DW_AT_stmt_list is a offset of line number information for this
// compile unit in debug_line section. For split dwarf this is
// left in the skeleton CU and so not included.
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h?rev=201095&r1=201094&r2=201095&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h Mon Feb 10 10:49:07 2014
@@ -534,8 +534,6 @@ private:
};
class DwarfCompileUnit : public DwarfUnit {
- unsigned statementListIndex;
-
public:
DwarfCompileUnit(unsigned UID, DIE *D, DICompileUnit Node, AsmPrinter *A,
DwarfDebug *DW, DwarfFile *DWU);
@@ -547,17 +545,6 @@ 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 {
More information about the llvm-commits
mailing list