Displaying 1 result from an estimated 1 matches for "structretexample".
2008 Nov 15
1
[LLVMdev] How to use EE->runFunction for a function with StructRet set?
...ncluding "this".
I've made an implementation that seems to work fine, but I would
apreciate if the people on this list could take a look to see if there's
anything amiss in my code.
Below is my test source 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...