]> granicus.if.org Git - clang/commit
Merge diagnostic group tables to reduce data size and relocation entries.
authorCraig Topper <craig.topper@gmail.com>
Wed, 28 Aug 2013 04:02:50 +0000 (04:02 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 28 Aug 2013 04:02:50 +0000 (04:02 +0000)
commitb1aa16a18563ebb6824fbe7267420942c802a8ca
tree6755960d301aef891445075512819c42e019a52b
parent2e010b20337c133a18d1cd9f951086616ed52aa7
Merge diagnostic group tables to reduce data size and relocation entries.

The individual group and subgroups tables are now two large tables. The option table stores an index into these two tables instead of pointers. This reduces the size of the options tabe since it doesn't need to store pointers. It also reduces the number of relocations needed.

My build shows this reducing DiagnosticsIDs.o and the clang binary by ~20.5K. It also removes ~400 relocation entries from DiagnosticIDs.o.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189438 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/DiagnosticIDs.cpp
tools/diagtool/DiagnosticNames.cpp
tools/diagtool/DiagnosticNames.h
utils/TableGen/ClangDiagnosticsEmitter.cpp