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

View file

@ -32,7 +32,7 @@
import sys, os
from distutils.core import setup, Extension
LLVM_PY_VERSION = '0.5'
LLVM_PY_VERSION = '0.6'
def _run(cmd):
@ -93,6 +93,7 @@ def call_setup(llvm_config):
'llvm._core',
['llvm/_core.c', 'llvm/wrap.c', 'llvm/extra.cpp'],
define_macros = [
('__STDC_CONSTANT_MACROS', None),
('__STDC_LIMIT_MACROS', None),
('_GNU_SOURCE', None)],
include_dirs = [incdir],