Displaying 1 result from an estimated 1 matches for "t33luliw4mdf7l2zkj8hg".
2008 Oct 06
1
[LLVMdev] Calling LLVM API from within an llvm::Module
...fig --cppflags` -o test.o
$ llvm-gcc `llvm-config --ldflags --libs core` test.o # works fine
# Compiling to bytecode
$ llvm-gcc -emit-llvm -c test.cpp `llvm-config --cppflags` -o test.o
$ llvm-gcc `llvm-config --ldflags --libs core` test.o # craps w/
following: http://pastie.textmate.org/private/t33luliw4mdf7l2zkj8hg
Is that supposed to work?
I also tried creating a Function w/ ExternalLinkage calling LLVM C API
function with no success:
Function *f = Function::Create(type, Function::ExternalLinkage,
StringValuePtr("LLVMModuleCreateWithName"), module);
Any pointer or explication would be gr...