search for: loader_h

Displaying 4 results from an estimated 4 matches for "loader_h".

2006 Aug 18
2
[LLVMdev] Weird behavior of llvm-ld
...t; What happens in that function is up to you :) > So, I tried this the last two days, but to no avail. I first wrote the following three files to introduce the RunOptimizations-symbol (adapted from http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html#faq-32.8): a) Loader.h #ifndef LOADER_H #define LOADER_H #ifdef __cplusplus #include "llvm/PassManager.h" using namespace llvm; #else typedef struct PassManager PassManager; #endif #ifdef __cplusplus extern "C" { extern void RunOptimizations(PassManager*,...); /* ANSI C prototypes */ extern PassManager* load_...
2006 Aug 16
0
[LLVMdev] Weird behavior of llvm-ld
Hi Bram, On Wed, 2006-08-16 at 22:41 +0200, Bram Adams wrote: > Op 16-aug-06, om 18:59 heeft Reid Spencer het volgende geschreven: > Are there any workarounds (using other LLVM-tools) to link a native > library with LLVM-bytecode? Yes. The general approach is to use llvm-as, llvm-dis, opt and llvm-link to work with the bytecode. You can also use gccld and gccas to run some canned
2006 Aug 16
2
[LLVMdev] Weird behavior of llvm-ld
Hi, Op 16-aug-06, om 18:59 heeft Reid Spencer het volgende geschreven: >> llvm-ld: warning: Supposed library 'SOME_OTHER_LIB' isn't a library. > > The -l option is used to link libraries into the resulting executable. > I'm hoping "SOME_OTHER_LIB" is not the actual name and you're just > paraphrasing the actual command line. Note that native
2006 Aug 20
0
[LLVMdev] Weird behavior of llvm-ld
...u :) > > > So, I tried this the last two days, but to no avail. I first wrote the > following three files to introduce the RunOptimizations-symbol > (adapted from http://www.parashift.com/c > ++-faq-lite/mixing-c-and-cpp.html#faq-32.8): > > a) Loader.h > > #ifndef LOADER_H > #define LOADER_H > > #ifdef __cplusplus > #include "llvm/PassManager.h" > using namespace llvm; > #else > typedef struct PassManager PassManager; > #endif > > #ifdef __cplusplus > extern "C" { > extern void RunOptimizations(PassManager*...