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 | 359731acbae700a9590257899bf54c05fee8a9cd (patch) | |
| tree | 392bb91bca2160341e109f22faa2ea9a31b7167f /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | 0da9841b56f5a05bc13b0650d0f491dd3920dc2e (diff) | |
| download | external_llvm-359731acbae700a9590257899bf54c05fee8a9cd.zip external_llvm-359731acbae700a9590257899bf54c05fee8a9cd.tar.gz external_llvm-359731acbae700a9590257899bf54c05fee8a9cd.tar.bz2 | |
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/AsmPrinter/AsmPrinter.cpp')
| -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 66a2eee..f205600 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 { |
