summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-26 04:08:02 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-26 04:08:02 +0000
commit67ca40c4197acc6a36e1e9139dc8fc608b2e6a44 (patch)
treeef382a300ed016c943d8f3c68ffd1a8bad1f3187 /clang/lib/Frontend/FrontendActions.cpp
parent675b1625129cbd772143e66223c0a8ab67945285 (diff)
downloadbcm5719-llvm-67ca40c4197acc6a36e1e9139dc8fc608b2e6a44.tar.gz
bcm5719-llvm-67ca40c4197acc6a36e1e9139dc8fc608b2e6a44.zip
Eliminate the "minimal" and printing parser actions, which only ever
worked for C anyway. Also kills the -cc1 options -parse-noop and -parse-print-callbacks. llvm-svn: 109392
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index 4db9c11ee31..2c0132ad2d4 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -147,15 +147,6 @@ void GeneratePTHAction::ExecuteAction() {
CacheTokens(CI.getPreprocessor(), OS);
}
-void ParseOnlyAction::ExecuteAction() {
- Preprocessor &PP = getCompilerInstance().getPreprocessor();
- llvm::OwningPtr<Action> PA(new MinimalAction(PP));
-
- Parser P(PP, *PA);
- PP.EnterMainSourceFile();
- P.ParseTranslationUnit();
-}
-
void PreprocessOnlyAction::ExecuteAction() {
Preprocessor &PP = getCompilerInstance().getPreprocessor();
@@ -170,19 +161,6 @@ void PreprocessOnlyAction::ExecuteAction() {
} while (Tok.isNot(tok::eof));
}
-void PrintParseAction::ExecuteAction() {
- CompilerInstance &CI = getCompilerInstance();
- Preprocessor &PP = getCompilerInstance().getPreprocessor();
- llvm::raw_ostream *OS = CI.createDefaultOutputFile(false, getCurrentFile());
- if (!OS) return;
-
- llvm::OwningPtr<Action> PA(CreatePrintParserActionsAction(PP, OS));
-
- Parser P(PP, *PA);
- PP.EnterMainSourceFile();
- P.ParseTranslationUnit();
-}
-
void PrintPreprocessedAction::ExecuteAction() {
CompilerInstance &CI = getCompilerInstance();
// Output file needs to be set to 'Binary', to avoid converting Unix style
OpenPOWER on IntegriCloud