diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-19 20:54:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-19 20:54:59 +0000 |
commit | 1be3b3bd5c983e3fc5b78db155632d2d2d6aa968 (patch) | |
tree | 79807165d9ffebe09ef8537356c035d7bd77551d /tools/driver/cc1_main.cpp | |
parent | f7b56fa451893699178b17d88644447bd5dbabd3 (diff) |
Fix some default in the option classes, and some CompilerInvocation argification
errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/cc1_main.cpp')
-rw-r--r-- | tools/driver/cc1_main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp index c5163592b4..a0bd492a10 100644 --- a/tools/driver/cc1_main.cpp +++ b/tools/driver/cc1_main.cpp @@ -60,7 +60,7 @@ int cc1_main(Diagnostic &Diags, const char **ArgBegin, const char **ArgEnd) { // Dump the converted arguments. llvm::SmallVector<llvm::StringRef, 32> Invocation2Args; - llvm::errs() << "invocation argv:"; + llvm::errs() << "invocation argv :"; for (unsigned i = 0, e = InvocationArgs.size(); i != e; ++i) { Invocation2Args.push_back(InvocationArgs[i]); llvm::errs() << " \"" << InvocationArgs[i] << '"'; @@ -73,12 +73,12 @@ int cc1_main(Diagnostic &Diags, const char **ArgBegin, const char **ArgEnd) { CompilerInvocation::CreateFromArgs(Invocation2, Invocation2Args); // FIXME: Implement CompilerInvocation comparison. - if (memcmp(&Invocation, &Invocation2, sizeof(Invocation)) != 0) { - llvm::errs() << "warning: Invocations differ!\n"; + if (true) { + //llvm::errs() << "warning: Invocations differ!\n"; std::vector<std::string> Invocation2Args; Invocation2.toArgs(Invocation2Args); - llvm::errs() << "invocation argv:"; + llvm::errs() << "invocation2 argv:"; for (unsigned i = 0, e = Invocation2Args.size(); i != e; ++i) llvm::errs() << " \"" << Invocation2Args[i] << '"'; llvm::errs() << "\n"; |