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 | e38764c66cab1db9330435fc0b06c5a7474e4f01 (patch) | |
tree | d38f5e8e7f0e483deda6f316c2a6c091005608a5 /clang/lib/Frontend/ASTUnit.cpp | |
parent | af75e1923ced9af628269a5f60eea53c2feda864 (diff) | |
download | bcm5719-llvm-e38764c66cab1db9330435fc0b06c5a7474e4f01.tar.gz bcm5719-llvm-e38764c66cab1db9330435fc0b06c5a7474e4f01.zip |
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!
llvm-svn: 108667
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 88f00376b72..d8e1c515299 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -413,7 +413,7 @@ ASTUnit *ASTUnit::LoadFromCommandLine(const char **ArgBegin, Args.push_back("-fsyntax-only"); // FIXME: We shouldn't have to pass in the path info. - driver::Driver TheDriver("clang", "/", llvm::sys::getHostTriple(), + driver::Driver TheDriver("clang", llvm::sys::getHostTriple(), "a.out", false, false, *Diags); // Don't check that inputs exist, they have been remapped. |