search for: simpleresult

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

Did you mean: simpleemresult
2018 Feb 20
2
Calling virtual elf functions under windows -> Adding ASM code
...39;m also not sure if it's a clang or a LLVM subject. I'm working with Visual Studio 2015, LLVM 5.0.1 and Windows 7 64bit. I have a simple project. With 2 Header files and 1 cpp file. "Interface.h" This file defines a simple class with two pure virtual member functions. "SimpleResult.h" This file defines a struct holding an integer "CM_Elf.cpp" This file defines a class (CM_Elf) implementing the interface from Interface.h Also there is an instance of the class (named "elf"). I compile the CM_Elf.cpp to a CM_Elf.bc file via clang-cl but with target &...
2018 Feb 22
0
[cfe-dev] Calling virtual elf functions under windows -> Adding ASM code
...you are casting a regular function pointer (returned from > getFunctionAddress) to a virtual method pointer. This is undefined behavior. > > The easiest way to achieve the effect you want would be to add a > trampoline to your source (or at the IR level): > > extern "C" SimpleResult call_Interface_init(Interface *Instance) { return > Instance->init(); } > > Then you can just use: > > auto CallInit = (SimpleResult(*)(Interface*))engine->getFunctionAddress(" > call_Interface_init"); > CallInit(inter); > > Cheers, > Lang. > > &g...
2018 Feb 07
0
Calling virtual elf functions under windows
...39;m also not sure if it's a clang or a LLVM subject. I'm working with Visual Studio 2015, LLVM 5.0.1 and Windows 7 64bit. I have a simple project. With 2 Header files and 1 cpp file. "Interface.h" This file defines a simple class with two pure virtual member functions. "SimpleResult.h" This file defines a struct holding an integer "CM_Elf.cpp" This file defines a class (CM_Elf) implementing the interface from Interface.h Also there is an instance of the class (named "elf"). I compile the CM_Elf.cpp to a CM_Elf.bc file via clang-cl but with target &...
2018 Feb 08
0
Calling virtual elf functions under windows -> Adding ASM code
...39;m also not sure if it's a clang or a LLVM subject. I'm working with Visual Studio 2015, LLVM 5.0.1 and Windows 7 64bit. I have a simple project. With 2 Header files and 1 cpp file. "Interface.h" This file defines a simple class with two pure virtual member functions. "SimpleResult.h" This file defines a struct holding an integer "CM_Elf.cpp" This file defines a class (CM_Elf) implementing the interface from Interface.h Also there is an instance of the class (named "elf"). I compile the CM_Elf.cpp to a CM_Elf.bc file via clang-cl but with target &...