[cfe-commits] r69262 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Chris Lattner sabre at nondot.org
Wed Apr 15 20:59:37 PDT 2009


Author: lattner
Date: Wed Apr 15 22:59:32 2009
New Revision: 69262

URL: http://llvm.org/viewvc/llvm-project?rev=69262&view=rev
Log:
use getDiagnosticLevel instead of getDiagnosticMapping, which
is about to become private.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=69262&r1=69261&r2=69262&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Apr 15 22:59:32 2009
@@ -407,8 +407,8 @@
       << Context.BuiltinInfo.GetName(BID)
       << R;
     if (Context.BuiltinInfo.getHeaderName(BID) &&
-        Diags.getDiagnosticMapping(diag::ext_implicit_lib_function_decl)
-          != diag::MAP_IGNORE)
+        Diags.getDiagnosticLevel(diag::ext_implicit_lib_function_decl)
+          != Diagnostic::Ignored)
       Diag(Loc, diag::note_please_include_header)
         << Context.BuiltinInfo.getHeaderName(BID)
         << Context.BuiltinInfo.GetName(BID);





More information about the cfe-commits mailing list