diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 01:08:15 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 01:08:15 +0000 |
commit | 6fdbb198e201ae935e19fb824a88f168f07c928a (patch) | |
tree | 97b6f1232c1ceaf885fd55d26644f2c7bf7f0e0c /lib/Core/ExternalDispatcher.cpp | |
parent | 561d694dc23e162bed0fef9aa1e50202d47c9ab2 (diff) | |
download | klee-6fdbb198e201ae935e19fb824a88f168f07c928a.tar.gz |
(llvm up) Update for API changes.
- This dance is getting old. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/ExternalDispatcher.cpp')
-rw-r--r-- | lib/Core/ExternalDispatcher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp index a330a7cd..80bff188 100644 --- a/lib/Core/ExternalDispatcher.cpp +++ b/lib/Core/ExternalDispatcher.cpp @@ -198,7 +198,7 @@ Function *ExternalDispatcher::createDispatcher(Function *target, Instruction *in BasicBlock *dBB = BasicBlock::Create("entry", dispatcher); - Instruction *argI64sp = new IntToPtrInst(getGlobalContext().getConstantInt(Type::Int64Ty, (long) (void*) &gTheArgsP), + Instruction *argI64sp = new IntToPtrInst(ConstantInt::get(Type::Int64Ty, (long) (void*) &gTheArgsP), PointerType::getUnqual(PointerType::getUnqual(Type::Int64Ty)), "argsp", dBB); @@ -207,7 +207,7 @@ Function *ExternalDispatcher::createDispatcher(Function *target, Instruction *in unsigned i = 0; for (CallSite::arg_iterator ai = cs.arg_begin(), ae = cs.arg_end(); ai!=ae; ++ai, ++i) { - Value *index = getGlobalContext().getConstantInt(Type::Int32Ty, i+1); + Value *index = ConstantInt::get(Type::Int32Ty, i+1); Instruction *argI64p = GetElementPtrInst::Create(argI64s, index, "", dBB); Instruction *argp = new BitCastInst(argI64p, |