summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorLubos Lunak <l.lunak@centrum.cz>2014-05-01 12:54:03 +0000
committerLubos Lunak <l.lunak@centrum.cz>2014-05-01 12:54:03 +0000
commit576a0415cb8b0615c2d6e8fd87e5427ddbc7fb20 (patch)
tree032789f8ef00241add4e5a3b7f2f93b7d3269f34 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parent4a04294882bdd530bd0c3b388980e5326423e1b2 (diff)
downloadbcm5719-llvm-576a0415cb8b0615c2d6e8fd87e5427ddbc7fb20.tar.gz
bcm5719-llvm-576a0415cb8b0615c2d6e8fd87e5427ddbc7fb20.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: 207758
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 349401ae4ea..94b327534fe 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -671,7 +671,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