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:
mdevan.foobar 2009-02-19 10:43:19 +00:00
commit 39b55e950c
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}