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/Target/XCore/XCoreInstrInfo.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/Target/XCore/XCoreInstrInfo.cpp')
| -rw-r--r-- | lib/Target/XCore/XCoreInstrInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreInstrInfo.cpp b/lib/Target/XCore/XCoreInstrInfo.cpp index 722e747..801116e 100644 --- a/lib/Target/XCore/XCoreInstrInfo.cpp +++ b/lib/Target/XCore/XCoreInstrInfo.cpp @@ -430,7 +430,8 @@ bool XCoreInstrInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB, it->getFrameIdx(), it->getRegClass()); if (emitFrameMoves) { unsigned SaveLabelId = MMI->NextLabelID(); - BuildMI(MBB, MI, DL, get(XCore::DBG_LABEL)).addImm(SaveLabelId); + BuildMI(MBB, MI, DL, get(XCore::DBG_LABEL)) + .addSym(MMI->getLabelSym(SaveLabelId)); XFI->getSpillLabels().push_back( std::pair<unsigned, CalleeSavedInfo>(SaveLabelId, *it)); } |
