aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2013-01-20 01:58:28 +0000
committerSean Silva <silvas@purdue.edu>2013-01-20 01:58:28 +0000
commitf1b49e237f60b4880b545d32c724a7387b937a81 (patch)
tree6d6190246e8f04674f4bfa371b29d15b22f74224 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent2118a5cd2bf1ed98823e7ee9b52bb51bb7a3b33b (diff)
downloadllvm-f1b49e237f60b4880b545d32c724a7387b937a81.zip
llvm-f1b49e237f60b4880b545d32c724a7387b937a81.tar.gz
llvm-f1b49e237f60b4880b545d32c724a7387b937a81.tar.bz2
Nuke SetUpBuildDumpLog.
Also, it was the only reason that `argc` and `argv` were being passed into createDiagnostics, so remove those parameters and clean up callers. llvm-svn: 172945
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
-rw-r--r--clang/lib/Frontend/CreateInvocationFromCommandLine.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
index 1ce23f7..e25eb43 100644
--- a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
+++ b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
@@ -34,9 +34,7 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList,
if (!Diags.getPtr()) {
// No diagnostics engine was provided, so create our own diagnostics object
// with the default options.
- Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions,
- ArgList.size(),
- ArgList.begin());
+ Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions);
}
SmallVector<const char *, 16> Args;