summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorLubos Lunak <l.lunak@centrum.cz>2013-12-04 10:21:41 +0000
committerLubos Lunak <l.lunak@centrum.cz>2013-12-04 10:21:41 +0000
commit5c4269c68810d4bdda5abdc39c0ee71854c82854 (patch)
tree2aa82ea644844a0db00341e2f44615731c9cb194 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parentcdd86884a4fe5e879b6d1ac1034e5056a423f0ab (diff)
downloadbcm5719-llvm-5c4269c68810d4bdda5abdc39c0ee71854c82854.tar.gz
bcm5719-llvm-5c4269c68810d4bdda5abdc39c0ee71854c82854.zip
do not warn about unknown pragmas in modes that do not handle them (pr9537)
And refactor to have just one place in code that sets up the empty pragma handlers. llvm-svn: 196372
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index f3393bfe51c..87fbd04041f 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -704,7 +704,7 @@ static int MacroIDCompare(const id_macro_pair *LHS, const id_macro_pair *RHS) {
static void DoPrintMacros(Preprocessor &PP, raw_ostream *OS) {
// Ignore unknown pragmas.
- PP.AddPragmaHandler(new EmptyPragmaHandler());
+ PP.IgnorePragmas();
// -dM mode just scans and ignores all tokens in the files, then dumps out
// the macro table at the end.
OpenPOWER on IntegriCloud