[cfe-commits] r69158 - /cfe/trunk/include/clang/Basic/Diagnostic.h

Chris Lattner sabre at nondot.org
Wed Apr 15 00:06:34 PDT 2009


Author: lattner
Date: Wed Apr 15 02:06:34 2009
New Revision: 69158

URL: http://llvm.org/viewvc/llvm-project?rev=69158&view=rev
Log:
this should be private

Modified:
    cfe/trunk/include/clang/Basic/Diagnostic.h

Modified: cfe/trunk/include/clang/Basic/Diagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Diagnostic.h?rev=69158&r1=69157&r2=69158&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/Diagnostic.h (original)
+++ cfe/trunk/include/clang/Basic/Diagnostic.h Wed Apr 15 02:06:34 2009
@@ -227,12 +227,6 @@
            "Cannot map errors!");
     setDiagnosticMappingInternal(Diag, Map);
   }
-  void setDiagnosticMappingInternal(unsigned Diag, unsigned Map) {
-    unsigned char &Slot = DiagMappings[Diag/4];
-    unsigned Bits = (Diag & 3)*2;
-    Slot &= ~(3 << Bits);
-    Slot |= Map << Bits;
-  }
 
   /// getDiagnosticMapping - Return the mapping currently set for the specified
   /// diagnostic.
@@ -307,6 +301,13 @@
   void Clear() { CurDiagID = ~0U; }
   
 private:
+  void setDiagnosticMappingInternal(unsigned Diag, unsigned Map) {
+    unsigned char &Slot = DiagMappings[Diag/4];
+    unsigned Bits = (Diag & 3)*2;
+    Slot &= ~(3 << Bits);
+    Slot |= Map << Bits;
+  }
+  
   /// getDiagnosticLevel - This is an internal implementation helper used when
   /// DiagClass is already known.
   Level getDiagnosticLevel(unsigned DiagID, unsigned DiagClass) const;





More information about the cfe-commits mailing list