diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 13:34:49 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 13:34:49 +0000 |
commit | 0623d7483df5fc17b32ba7bc5cb9c7beebf6db9c (patch) | |
tree | 28726ef2038e86121e353aabf52297b35a48efa2 /contrib/llvm/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 7d523365ff1a3cc95bc058b33102500f61e8166d (diff) | |
parent | 45b533945f0851ec234ca846e1af5ee1e4df0b6e (diff) |
Update clang to trunk r256633.
Notes
Notes:
svn path=/projects/clang380-import/; revision=292942
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/llvm/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/contrib/llvm/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp index 2afd23fcb9e8..301916422564 100644 --- a/contrib/llvm/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp +++ b/contrib/llvm/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp @@ -39,15 +39,13 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList, Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions); } - SmallVector<const char *, 16> Args; - Args.push_back("<clang>"); // FIXME: Remove dummy argument. - Args.insert(Args.end(), ArgList.begin(), ArgList.end()); + SmallVector<const char *, 16> Args(ArgList.begin(), ArgList.end()); // FIXME: Find a cleaner way to force the driver into restricted modes. Args.push_back("-fsyntax-only"); // FIXME: We shouldn't have to pass in the path info. - driver::Driver TheDriver("clang", llvm::sys::getDefaultTargetTriple(), + driver::Driver TheDriver(Args[0], llvm::sys::getDefaultTargetTriple(), *Diags); // Don't check that inputs exist, they may have been remapped. |