aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/GCStrategy.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-17 05:41:18 +0000
committerChris Lattner <sabre@nondot.org>2010-03-17 05:41:18 +0000
commitaed00fa039c5ff743a826cbc98e8eeba87ff23d9 (patch)
tree0db04ae2e8f673a646b25e6ad291f67165eb8ed0 /llvm/lib/CodeGen/GCStrategy.cpp
parentfb803d7dcb0341480d8c55d31fe0a6b6dcbe8ca9 (diff)
downloadllvm-aed00fa039c5ff743a826cbc98e8eeba87ff23d9.zip
llvm-aed00fa039c5ff743a826cbc98e8eeba87ff23d9.tar.gz
llvm-aed00fa039c5ff743a826cbc98e8eeba87ff23d9.tar.bz2
fix GetOrCreateTemporarySymbol to require a name, clients
should use CreateTempSymbol() if they don't care about the name. llvm-svn: 98712
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 1a23be0..6d7cc51 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 = MBB.getParent()->getContext().GetOrCreateTemporarySymbol();
+ MCSymbol *Label = MBB.getParent()->getContext().CreateTempSymbol();
BuildMI(MBB, MI, DL, TII->get(TargetOpcode::GC_LABEL)).addSym(Label);
return Label;
}