mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
update unit test for api change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c842dda39
commit
796e64b546
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user