summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExecutionDriver.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-14 22:24:31 +0000
committerChris Lattner <sabre@nondot.org>2003-10-14 22:24:31 +0000
commitdc92fa6473b91d766a521f30f0d274f01d7a6f6d (patch)
tree5cffd26633e6fc225bf86df101a3fc691d6a8b2c /llvm/tools/bugpoint/ExecutionDriver.cpp
parent3f6e522257d422ddfce0f2f007ddfe7f66305b17 (diff)
downloadbcm5719-llvm-dc92fa6473b91d766a521f30f0d274f01d7a6f6d.tar.gz
bcm5719-llvm-dc92fa6473b91d766a521f30f0d274f01d7a6f6d.zip
add support forloading additional .so files on the command line
llvm-svn: 9131
Diffstat (limited to 'llvm/tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r--llvm/tools/bugpoint/ExecutionDriver.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp
index 749dac5fe23..e0e0b70c572 100644
--- a/llvm/tools/bugpoint/ExecutionDriver.cpp
+++ b/llvm/tools/bugpoint/ExecutionDriver.cpp
@@ -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);
OpenPOWER on IntegriCloud