[cfe-commits] r86776 - /cfe/trunk/tools/clang-cc/clang-cc.cpp
Daniel Dunbar
daniel at zuster.org
Tue Nov 10 16:54:56 PST 2009
Author: ddunbar
Date: Tue Nov 10 18:54:56 2009
New Revision: 86776
URL: http://llvm.org/viewvc/llvm-project?rev=86776&view=rev
Log:
Recognize -fsyntax-only as a "consumer only" action.
Modified:
cfe/trunk/tools/clang-cc/clang-cc.cpp
Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=86776&r1=86775&r2=86776&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Tue Nov 10 18:54:56 2009
@@ -1512,9 +1512,6 @@
case ASTView:
return CreateASTViewer();
- case PrintDeclContext:
- return CreateDeclContextPrinter();
-
case DumpRecordLayouts:
return CreateRecordLayoutDumper();
@@ -1552,6 +1549,12 @@
case RewriteBlocks:
return CreateBlockRewriter(InFile, PP.getDiagnostics(),
PP.getLangOptions());
+
+ case ParseSyntaxOnly:
+ return new ASTConsumer();
+
+ case PrintDeclContext:
+ return CreateDeclContextPrinter();
}
}
@@ -1666,12 +1669,6 @@
break;
}
- case ParseSyntaxOnly: { // -fsyntax-only
- llvm::TimeRegion Timer(ClangFrontendTimer);
- Consumer.reset(new ASTConsumer());
- break;
- }
-
case RewriteMacros:
OS.reset(ComputeOutFile(CompOpts, InFile, 0, true, OutPath));
RewriteMacrosInInput(PP, OS.get());
@@ -1685,7 +1682,6 @@
break;
case FixIt:
- llvm::TimeRegion Timer(ClangFrontendTimer);
Consumer.reset(new ASTConsumer());
FixItRewrite = new FixItRewriter(PP.getDiagnostics(),
PP.getSourceManager(),
More information about the cfe-commits
mailing list