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 | c26f44fb0778fd24d8e4986a9b946bda0f53547b (patch) | |
tree | 7228b95588808dcfb3aeaa426336b01de62bb5c0 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | d3fa9721fbcfc51f5d2e3a0f68dcc2f37ccb7c79 (diff) | |
download | bcm5719-llvm-c26f44fb0778fd24d8e4986a9b946bda0f53547b.tar.gz bcm5719-llvm-c26f44fb0778fd24d8e4986a9b946bda0f53547b.zip |
change the DBG_LABEL MachineInstr to always be created
with an MCSymbol instead of an immediate.
llvm-svn: 98481
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 66a2eee7a78..f2056008823 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/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 { |