aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/GCStrategy.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 07:29:45 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 07:29:45 +0000
commit806f0fb7b1345ac76afc4332bc6a203e911256c5 (patch)
tree403607f670f98e25b5f3b3e31bfcb118d46e0f23 /llvm/lib/CodeGen/GCStrategy.cpp
parent1065f49ad9b2cb175e86ee9bc5f919e3bdafe5f6 (diff)
downloadllvm-806f0fb7b1345ac76afc4332bc6a203e911256c5.zip
llvm-806f0fb7b1345ac76afc4332bc6a203e911256c5.tar.gz
llvm-806f0fb7b1345ac76afc4332bc6a203e911256c5.tar.bz2
Change this code to allocate temporary labels from mccontext,
not from MMI. llvm-svn: 98475
Diffstat (limited to 'llvm/lib/CodeGen/GCStrategy.cpp')
-rw-r--r--llvm/lib/CodeGen/GCStrategy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GCStrategy.cpp b/llvm/lib/CodeGen/GCStrategy.cpp
index 69db77f..1a23be0 100644
--- a/llvm/lib/CodeGen/GCStrategy.cpp
+++ b/llvm/lib/CodeGen/GCStrategy.cpp
@@ -332,7 +332,7 @@ void MachineCodeAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
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;
}