summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 22:49:48 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 22:49:48 +0000
commit802e1088de64ab80f859eed0899dc8607e2929dc (patch)
tree1116099181b81f16a2ceb898b7abce5d14fef9e5 /llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
parent0e45d24a4e62a2f878763d75670f389c9c59c3a3 (diff)
downloadbcm5719-llvm-802e1088de64ab80f859eed0899dc8607e2929dc.tar.gz
bcm5719-llvm-802e1088de64ab80f859eed0899dc8607e2929dc.zip
update unit test for api change.
llvm-svn: 100486
Diffstat (limited to 'llvm/unittests/ExecutionEngine/JIT/JITTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITTest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
index b85f724353c..8f0582d3e8d 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
@@ -701,9 +701,7 @@ ExecutionEngine *getJITFromBitcode(
LLVMContext &Context, const std::string &Bitcode, Module *&M) {
// c_str() is null-terminated like MemoryBuffer::getMemBuffer requires.
MemoryBuffer *BitcodeBuffer =
- MemoryBuffer::getMemBuffer(Bitcode.c_str(),
- Bitcode.c_str() + Bitcode.size(),
- "Bitcode for test");
+ MemoryBuffer::getMemBuffer(Bitcode, "Bitcode for test");
std::string errMsg;
M = getLazyBitcodeModule(BitcodeBuffer, Context, &errMsg);
if (M == NULL) {
OpenPOWER on IntegriCloud