diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-13 07:40:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-13 07:40:56 +0000 |
commit | fb65807c349b82e3f464158e89acd894cbd0b6ed (patch) | |
tree | f294220c32b1492d53ff5a23592e2da4cb19f26e /lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | |
parent | 669f6b3beeee4a5a6f979a8e332e1d885aa30566 (diff) |
factor some labels, simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp index f55e4fe8e6..3c00839aa7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp @@ -240,12 +240,12 @@ void DwarfPrinter::EmitSectionOffset(const MCSymbol *Label, void DwarfPrinter::EmitFrameMoves(const char *BaseLabel, unsigned BaseLabelID, const std::vector<MachineMove> &Moves, bool isEH) { - int stackGrowth = - Asm->TM.getFrameInfo()->getStackGrowthDirection() == - TargetFrameInfo::StackGrowsUp ? - TD->getPointerSize() : -TD->getPointerSize(); - bool IsLocal = BaseLabel && strcmp(BaseLabel, "label") == 0; - + int stackGrowth = TD->getPointerSize(); + if (Asm->TM.getFrameInfo()->getStackGrowthDirection() != + TargetFrameInfo::StackGrowsUp) + stackGrowth *= -1; + + bool IsLocal = false; for (unsigned i = 0, N = Moves.size(); i < N; ++i) { const MachineMove &Move = Moves[i]; unsigned LabelID = Move.getLabelID(); |