Build with LLVM 2.5 (no longer works with 2.4) (Seth Warn, Anthony Desnos)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@60 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
58ceb85afb
commit
39b55e950c
2 changed files with 4 additions and 4 deletions
|
|
@ -305,9 +305,8 @@ LLVMModuleRef LLVMGetModuleFromAssembly(const char *asmtext, unsigned txtlen,
|
|||
|
||||
llvm::Module *modulep;
|
||||
llvm::ParseError error;
|
||||
if (!(modulep = llvm::ParseAssemblyString(asmtext, NULL /*unused within!*/,
|
||||
&error))) {
|
||||
*out = strdup(error.getMessage().c_str());
|
||||
if (!(modulep = llvm::ParseAssemblyString(asmtext, NULL, error))) {
|
||||
*out = strdup(error.getRawMessage().c_str());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue