diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:10:20 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:10:20 +0000 |
commit | 35a85e845302802be5191dd5c75ccea9eedea1be (patch) | |
tree | dc30ab9b1c857d5d33709c67a5fca6c812981f06 /tools/llvmc2/Action.cpp | |
parent | ecbdcf2ae056404cde449783a1ec8ba798c36562 (diff) |
Take object file as input and handle files with the same name correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc2/Action.cpp')
-rw-r--r-- | tools/llvmc2/Action.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/llvmc2/Action.cpp b/tools/llvmc2/Action.cpp index fdbfb88611..3d61d37368 100644 --- a/tools/llvmc2/Action.cpp +++ b/tools/llvmc2/Action.cpp @@ -34,6 +34,7 @@ namespace { if (!prog.canExecute()) throw std::runtime_error("Program '" + name + "' is not executable."); + // Build the command line vector and redirects. const sys::Path* redirects[3] = {0,0,0}; sys::Path stdout_redirect; @@ -54,6 +55,7 @@ namespace { } argv.push_back(0); // null terminate list. + // Invoke the program. return sys::Program::ExecuteAndWait(prog, &argv[0], 0, &redirects[0]); } |