search for: teststructret

Displaying 1 result from an estimated 1 matches for "teststructret".

2008 Nov 15
1
[LLVMdev] How to use EE->runFunction for a function with StructRet set?
...ce code with compilation instructions. Best regards, David Eriksson == StructRetExample.cc == = Source = #include <string> std::string get_hello() { return "hello"; } = Compile to LLVM bitcode = llvm-g++ --emit-llvm -O3 -c -o StructRetExample.bc StructRetExample.cc == TestStructRet.cc == = Source = #include <iostream> #include <string> #include <llvm/Bitcode/ReaderWriter.h> #include <llvm/DerivedTypes.h> #include <llvm/ExecutionEngine/ExecutionEngine.h> #include <llvm/ExecutionEngine/GenericValue.h> #include <llvm/Module.h> #inclu...