aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit118964b2f1cc8f64e302833b5d501cdcd61c6bec (patch)
treee5daa7058cd19b24fca426e900427b0ac96dedec /lib/CodeGen/GCStrategy.cpp
parent0ede4555ac1c1e207285264a2ff546d46d0f8efd (diff)
downloadexternal_llvm-118964b2f1cc8f64e302833b5d501cdcd61c6bec.tar.gz
external_llvm-118964b2f1cc8f64e302833b5d501cdcd61c6bec.tar.bz2
external_llvm-118964b2f1cc8f64e302833b5d501cdcd61c6bec.zip
Change this code to allocate temporary labels from mccontext,
not from MMI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/GCStrategy.cpp')
-rw-r--r--lib/CodeGen/GCStrategy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/GCStrategy.cpp b/lib/CodeGen/GCStrategy.cpp
index 69db77f4fb..1a23be0c7d 100644
--- a/lib/CodeGen/GCStrategy.cpp
+++ b/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;
}