projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Orc] Add support classes for inspecting and running C++ static ctor/dtors, and
[oota-llvm.git]
/
tools
/
lli
/
OrcLazyJIT.cpp
diff --git
a/tools/lli/OrcLazyJIT.cpp
b/tools/lli/OrcLazyJIT.cpp
index d08008da6e056e63ade4baa83bc3b9efd8aa667e..236de7c31d26d547239bb712d6fe7b64d9c65129 100644
(file)
--- a/
tools/lli/OrcLazyJIT.cpp
+++ b/
tools/lli/OrcLazyJIT.cpp
@@
-64,8
+64,6
@@
int llvm::runOrcLazyJIT(std::unique_ptr<Module> M, int ArgC, char* ArgV[]) {
}
typedef int (*MainFnPtr)(int, char*[]);
- auto Main = reinterpret_cast<MainFnPtr>(
- static_cast<uintptr_t>(MainSym.getAddress()));
-
+ auto Main = OrcLazyJIT::fromTargetAddress<MainFnPtr>(MainSym.getAddress());
return Main(ArgC, ArgV);
}