mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
add support forloading additional .so files on the command line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -42,6 +42,11 @@ namespace {
|
|||||||
cl::opt<std::string>
|
cl::opt<std::string>
|
||||||
InputFile("input", cl::init("/dev/null"),
|
InputFile("input", cl::init("/dev/null"),
|
||||||
cl::desc("Filename to pipe in as stdin (default: /dev/null)"));
|
cl::desc("Filename to pipe in as stdin (default: /dev/null)"));
|
||||||
|
|
||||||
|
cl::list<std::string>
|
||||||
|
AdditionalSOs("additional-so",
|
||||||
|
cl::desc("Additional shared objects to load "
|
||||||
|
"into executing programs"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Anything specified after the --args option are taken as arguments to the
|
// Anything specified after the --args option are taken as arguments to the
|
||||||
@ -125,7 +130,7 @@ std::string BugDriver::executeProgram(std::string OutputFile,
|
|||||||
OutputFile = getUniqueFilename(OutputFile);
|
OutputFile = getUniqueFilename(OutputFile);
|
||||||
|
|
||||||
// Figure out which shared objects to run, if any.
|
// Figure out which shared objects to run, if any.
|
||||||
std::vector<std::string> SharedObjs;
|
std::vector<std::string> SharedObjs(AdditionalSOs);
|
||||||
if (!SharedObj.empty())
|
if (!SharedObj.empty())
|
||||||
SharedObjs.push_back(SharedObj);
|
SharedObjs.push_back(SharedObj);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user