aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-04 13:02:15 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-04 13:02:15 +0000
commit02c746de10c118c594d815262d84b5562453e076 (patch)
tree8d65a65ac34e00087e05d245a4fdfccfd992afa4 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parent3307c508c932ad6f9686b15f187c06da21306c27 (diff)
downloadllvm-02c746de10c118c594d815262d84b5562453e076.zip
llvm-02c746de10c118c594d815262d84b5562453e076.tar.gz
llvm-02c746de10c118c594d815262d84b5562453e076.tar.bz2
Remove Diagnostic.h include from Preprocessor.h.
- Move the offending methods out of line and fix transitive includers. - This required changing an enum in the PPCallback API into an unsigned. llvm-svn: 149782
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 5e76a79..93dd004 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -128,7 +128,7 @@ public:
virtual void PragmaDiagnosticPop(SourceLocation Loc,
StringRef Namespace);
virtual void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace,
- diag::Mapping Map, StringRef Str);
+ unsigned Map, StringRef Str);
bool HandleFirstTokOnLine(Token &Tok);
bool MoveToLine(SourceLocation Loc) {
@@ -385,10 +385,10 @@ PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) {
void PrintPPOutputPPCallbacks::
PragmaDiagnostic(SourceLocation Loc, StringRef Namespace,
- diag::Mapping Map, StringRef Str) {
+ unsigned Map, StringRef Str) {
MoveToLine(Loc);
OS << "#pragma " << Namespace << " diagnostic ";
- switch (Map) {
+ switch ((diag::Mapping)Map) {
case diag::MAP_WARNING:
OS << "warning";
break;