mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Make bugpoint pass -load arguments to LLI. This lets one use bugpoint with
programs that depend on native shared libraries. Patch by Timo Lindfors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9e97f3c2e2
commit
3ea11cf8fc
@ -199,14 +199,15 @@ int LLI::ExecuteProgram(const std::string &Bitcode,
|
||||
const std::vector<std::string> &SharedLibs,
|
||||
unsigned Timeout,
|
||||
unsigned MemoryLimit) {
|
||||
if (!SharedLibs.empty())
|
||||
throw ToolExecutionError("LLI currently does not support "
|
||||
"loading shared libraries.");
|
||||
|
||||
std::vector<const char*> LLIArgs;
|
||||
LLIArgs.push_back(LLIPath.c_str());
|
||||
LLIArgs.push_back("-force-interpreter=true");
|
||||
|
||||
for (std::vector<std::string>::const_iterator i = SharedLibs.begin(), e = SharedLibs.end(); i != e; ++i) {
|
||||
LLIArgs.push_back("-load");
|
||||
LLIArgs.push_back((*i).c_str());
|
||||
}
|
||||
|
||||
// Add any extra LLI args.
|
||||
for (unsigned i = 0, e = ToolArgs.size(); i != e; ++i)
|
||||
LLIArgs.push_back(ToolArgs[i].c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user