aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 08:12:40 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 08:12:40 +0000
commit2e9919a5e5fe76f4b1e3290103c4bfd149ebba9c (patch)
tree441d723506a0aa8d99350120c844a43ac5166e80 /lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
parent6ffcccab5191ef1dcde876800c24a1f58b3b7ad8 (diff)
Now that DBG_LABEL is updated, we can finally make MachineMove
contain an MCSymbol instead of a label index. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index f79b2ab6f9..e21269604e 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -247,13 +247,9 @@ void DwarfPrinter::EmitFrameMoves(MCSymbol *BaseLabel,
for (unsigned i = 0, N = Moves.size(); i < N; ++i) {
const MachineMove &Move = Moves[i];
- MCSymbol *Label = 0;
- unsigned LabelID = Move.getLabelID();
+ MCSymbol *Label = Move.getLabel();
// Throw out move if the label is invalid.
- if (LabelID) {
- Label = getDWLabel("label", LabelID);
- if (!Label->isDefined()) continue; // Not emitted, in dead code.
- }
+ if (Label && !Label->isDefined()) continue; // Not emitted, in dead code.
const MachineLocation &Dst = Move.getDestination();
const MachineLocation &Src = Move.getSource();