aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/GCStrategy.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-28 13:14:17 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-28 13:14:17 +0000
commit5a913d61e3480f0ef825e284c09a7811deef8a1c (patch)
treee1897705641e56cdf229eecacc9e4c1eeca380d1 /llvm/lib/CodeGen/GCStrategy.cpp
parent08e53d041f6b0cb0d6367a2173569a5005114070 (diff)
downloadllvm-5a913d61e3480f0ef825e284c09a7811deef8a1c.zip
llvm-5a913d61e3480f0ef825e284c09a7811deef8a1c.tar.gz
llvm-5a913d61e3480f0ef825e284c09a7811deef8a1c.tar.bz2
Rename getAnalysisToUpdate to getAnalysisIfAvailable.
llvm-svn: 63198
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 517b3a7..96b8122 100644
--- a/llvm/lib/CodeGen/GCStrategy.cpp
+++ b/llvm/lib/CodeGen/GCStrategy.cpp
@@ -144,7 +144,7 @@ bool LowerIntrinsics::doInitialization(Module &M) {
// work against the entire module. But this cannot be done at
// runFunction time (initializeCustomLowering likely needs to change
// the module).
- GCModuleInfo *MI = getAnalysisToUpdate<GCModuleInfo>();
+ GCModuleInfo *MI = getAnalysisIfAvailable<GCModuleInfo>();
assert(MI && "LowerIntrinsics didn't require GCModuleInfo!?");
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
if (!I->isDeclaration() && I->hasGC())