From 9faf50e62ddcd2535b472abc8daafd7042120caa Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Apr 2009 07:06:34 +0000 Subject: [PATCH] this should be private git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69158 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Diagnostic.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 0b2934947b..ffca234408 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -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; -- 2.40.0