1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

add support forloading additional .so files on the command line

llvm-svn: 9131
This commit is contained in:
Chris Lattner 2003-10-14 22:24:31 +00:00
parent 1a8192c85e
commit c44998d315

View File

@ -42,6 +42,11 @@ namespace {
cl::opt<std::string>
InputFile("input", cl::init("/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
@ -125,7 +130,7 @@ std::string BugDriver::executeProgram(std::string OutputFile,
OutputFile = getUniqueFilename(OutputFile);
// Figure out which shared objects to run, if any.
std::vector<std::string> SharedObjs;
std::vector<std::string> SharedObjs(AdditionalSOs);
if (!SharedObj.empty())
SharedObjs.push_back(SharedObj);