]> granicus.if.org Git - clang/commitdiff
this should be private
authorChris Lattner <sabre@nondot.org>
Wed, 15 Apr 2009 07:06:34 +0000 (07:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Apr 2009 07:06:34 +0000 (07:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69158 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Diagnostic.h

index 0b2934947b405a52b95bc781ece5922b5dc82d91..ffca23440833d9b75a86b0fdc669585885ef4fc3 100644 (file)
@@ -227,12 +227,6 @@ public:
            "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 @@ public:
   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;