[llvm] r201043 - Fix formatting introduced in r200941
David Blaikie
dblaikie at gmail.com
Sun Feb 9 01:49:31 PST 2014
Author: dblaikie
Date: Sun Feb 9 03:49:29 2014
New Revision: 201043
URL: http://llvm.org/viewvc/llvm-project?rev=201043&view=rev
Log:
Fix formatting introduced in r200941
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h
llvm/trunk/lib/CodeGen/RegisterPressure.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=201043&r1=201042&r2=201043&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Sun Feb 9 03:49:29 2014
@@ -771,6 +771,7 @@ 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=201043&r1=201042&r2=201043&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h Sun Feb 9 03:49:29 2014
@@ -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 {
Modified: llvm/trunk/lib/CodeGen/RegisterPressure.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterPressure.cpp?rev=201043&r1=201042&r2=201043&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterPressure.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterPressure.cpp Sun Feb 9 03:49:29 2014
@@ -512,8 +512,7 @@ bool RegPressureTracker::recede(SmallVec
// live-out, increase its PDiff value to avoid underflowing pressure.
if (PDiff)
PDiff->addPressureChange(Reg, false, MRI);
- }
- else {
+ } else {
if (LiveRegs.erase(Reg))
decreaseRegPressure(Reg);
else
More information about the llvm-commits
mailing list