OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff2583
)
[lli] Don't strip away const qualifier. Unbreak the gcc6 build.
author
Davide Italiano
<davide@freebsd.org>
Mon, 31 Oct 2016 16:21:48 +0000
(16:21 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Mon, 31 Oct 2016 16:21:48 +0000
(16:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285592
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/lli/OrcLazyJIT.cpp
patch
|
blob
|
history
diff --git
a/tools/lli/OrcLazyJIT.cpp
b/tools/lli/OrcLazyJIT.cpp
index
38224b4
..
ec61ce5
100644
(file)
--- a/
tools/lli/OrcLazyJIT.cpp
+++ b/
tools/lli/OrcLazyJIT.cpp
@@
-151,11
+151,11
@@
int llvm::runOrcLazyJIT(std::vector<std::unique_ptr<Module>> Ms,
return 1;
}
- typedef int (*MainFnPtr)(int, char*[]);
+ typedef int (*MainFnPtr)(int, c
onst c
har*[]);
std::vector<const char *> ArgV;
for (auto &Arg : Args)
ArgV.push_back(Arg.c_str());
auto Main = fromTargetAddress<MainFnPtr>(MainSym.getAddress());
- return Main(ArgV.size(), (char**)ArgV.data());
+ return Main(ArgV.size(), (c
onst c
har**)ArgV.data());
}