diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-19 00:44:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-19 00:44:04 +0000 |
commit | 0bbad519aa068206f1e158d5073f72a39fbe83c5 (patch) | |
tree | ce7571947d165a433786d1b2cdfb16399cd14145 /tools/driver/driver.cpp | |
parent | e9122a36c4c951c4cdce842dc8caf20874908cfd (diff) |
Driver: Change the driver to take the path to the main executable, instead of
taking it in pieces.
- Fixes a problem where the Clang executable path was not initialized properly
on Win32, because sys::Path::getBasename() doesn't do what I always think it
does. Imagine that, a sys::Path interface that is confusing!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/driver.cpp')
-rw-r--r-- | tools/driver/driver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index 8df42246ab..22af58fe6c 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -219,8 +219,7 @@ int main(int argc, const char **argv) { const bool IsProduction = false; const bool CXXIsProduction = false; #endif - Driver TheDriver(Path.getBasename(), Path.getDirname(), - llvm::sys::getHostTriple(), + Driver TheDriver(Path.str(), llvm::sys::getHostTriple(), "a.out", IsProduction, CXXIsProduction, Diags); |