diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-14 07:56:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-14 07:56:48 +0000 |
commit | 6ffcccab5191ef1dcde876800c24a1f58b3b7ad8 (patch) | |
tree | 392bb91bca2160341e109f22faa2ea9a31b7167f /lib/CodeGen | |
parent | 3b39f890069a37e67081b17f1e9c99a8654d11cf (diff) |
change the DBG_LABEL MachineInstr to always be created
with an MCSymbol instead of an immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 66a2eee7a7..f205600882 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1553,13 +1553,7 @@ void AsmPrinter::printKill(const MachineInstr *MI) const { /// printLabel - This method prints a local label used by debug and /// exception handling tables. void AsmPrinter::printLabelInst(const MachineInstr *MI) const { - MCSymbol *Sym; - - if (MI->getOperand(0).isMCSymbol()) - Sym = MI->getOperand(0).getMCSymbol(); - else - Sym = MMI->getLabelSym(MI->getOperand(0).getImm()); - OutStreamer.EmitLabel(Sym); + OutStreamer.EmitLabel(MI->getOperand(0).getMCSymbol()); } void AsmPrinter::printLabel(unsigned Id) const { |