diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-15 07:06:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-15 07:06:34 +0000 |
commit | 9428a21067027b9ee4512899c96630dfb26912b6 (patch) | |
tree | 1a34969f202fda30d434121648e2db87664cc4e4 /clang | |
parent | f5f049b548ee41f949413679fbee856beb3c660e (diff) | |
download | bcm5719-llvm-9428a21067027b9ee4512899c96630dfb26912b6.tar.gz bcm5719-llvm-9428a21067027b9ee4512899c96630dfb26912b6.zip |
this should be private
llvm-svn: 69158
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Basic/Diagnostic.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/clang/include/clang/Basic/Diagnostic.h b/clang/include/clang/Basic/Diagnostic.h index 0b2934947b4..ffca2344083 100644 --- a/clang/include/clang/Basic/Diagnostic.h +++ b/clang/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; |