[llvm-commits] [llvm] r98475 - /llvm/trunk/lib/CodeGen/GCStrategy.cpp
Chris Lattner
sabre at nondot.org
Sat Mar 13 23:29:45 PST 2010
Author: lattner
Date: Sun Mar 14 01:29:45 2010
New Revision: 98475
URL: http://llvm.org/viewvc/llvm-project?rev=98475&view=rev
Log:
Change this code to allocate temporary labels from mccontext,
not from MMI.
Modified:
llvm/trunk/lib/CodeGen/GCStrategy.cpp
Modified: llvm/trunk/lib/CodeGen/GCStrategy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GCStrategy.cpp?rev=98475&r1=98474&r2=98475&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GCStrategy.cpp (original)
+++ llvm/trunk/lib/CodeGen/GCStrategy.cpp Sun Mar 14 01:29:45 2010
@@ -332,7 +332,7 @@
MCSymbol *MachineCodeAnalysis::InsertLabel(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI,
DebugLoc DL) const {
- MCSymbol *Label = MMI->getLabelSym(MMI->NextLabelID());
+ MCSymbol *Label = MBB.getParent()->getContext().GetOrCreateTemporarySymbol();
BuildMI(MBB, MI, DL, TII->get(TargetOpcode::GC_LABEL)).addSym(Label);
return Label;
}
More information about the llvm-commits
mailing list