summaryrefslogtreecommitdiffstats
path: root/llvm/examples/HowToUseJIT
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-24 23:12:02 +0000
committerOwen Anderson <resistor@mac.com>2009-07-24 23:12:02 +0000
commitedb4a703255623eef2c56e644f9fdc04cadd7336 (patch)
tree0ef285683687c1c927ff68af16d77b3645e0d66d /llvm/examples/HowToUseJIT
parentfcd54f73bf465f9fa7a820344642f848b5285a3b (diff)
downloadbcm5719-llvm-edb4a703255623eef2c56e644f9fdc04cadd7336.tar.gz
bcm5719-llvm-edb4a703255623eef2c56e644f9fdc04cadd7336.zip
Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks to contexts-on-types. More to come.
llvm-svn: 77011
Diffstat (limited to 'llvm/examples/HowToUseJIT')
-rw-r--r--llvm/examples/HowToUseJIT/HowToUseJIT.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
index 8a788491fd1..7a99ed44735 100644
--- a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
@@ -69,7 +69,7 @@ int main() {
BasicBlock *BB = BasicBlock::Create("EntryBlock", Add1F);
// Get pointers to the constant `1'.
- Value *One = Context.getConstantInt(Type::Int32Ty, 1);
+ Value *One = ConstantInt::get(Type::Int32Ty, 1);
// Get pointers to the integer argument of the add1 function...
assert(Add1F->arg_begin() != Add1F->arg_end()); // Make sure there's an arg
@@ -94,7 +94,7 @@ int main() {
BB = BasicBlock::Create("EntryBlock", FooF);
// Get pointers to the constant `10'.
- Value *Ten = Context.getConstantInt(Type::Int32Ty, 10);
+ Value *Ten = ConstantInt::get(Type::Int32Ty, 10);
// Pass Ten to the call call:
CallInst *Add1CallRes = CallInst::Create(Add1F, Ten, "add1", BB);
OpenPOWER on IntegriCloud