aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-29 18:55:55 +0000
committerOwen Anderson <resistor@mac.com>2009-07-29 18:55:55 +0000
commit02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71 (patch)
treec06618ee06936e7f5a1dc3c30b313ee49d5eb09b /lib/Transforms/Utils/InlineFunction.cpp
parentc9dc5497d5a4bba7ae3c26bdb25c7975739bc633 (diff)
downloadexternal_llvm-02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71.zip
external_llvm-02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71.tar.gz
external_llvm-02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71.tar.bz2
Move ConstantExpr to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index 16d8879..cdde678 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -322,7 +322,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
Value *Size;
if (TD == 0)
- Size = Context.getConstantExprSizeOf(AggTy);
+ Size = ConstantExpr::getSizeOf(AggTy);
else
Size = ConstantInt::get(Type::Int64Ty,
TD->getTypeStoreSize(AggTy));