Refactor SymbolTableListTraits to only have a single pointer in it, instead
authorChris Lattner <sabre@nondot.org>
Tue, 17 Apr 2007 03:26:42 +0000 (03:26 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Apr 2007 03:26:42 +0000 (03:26 +0000)
commit17fcdd5e1b78b829068ca657c97357a39d6e768b
treedb5c01cfda299d428837e2689e9aca31bf1bf556
parent205c27d4a904c12d1bfb0b2961daab70f286cc20
Refactor SymbolTableListTraits to only have a single pointer in it, instead
of two.  This shrinkifies Function by 8 bytes (104->96) and Module by 8
bytes (68->60).  On a testcase of mine, this reduces the memory used to
read a module header from 565680b to 561024, a little over 4K.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36188 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/Argument.h
include/llvm/BasicBlock.h
include/llvm/Function.h
include/llvm/GlobalVariable.h
include/llvm/Instruction.h
include/llvm/Module.h
include/llvm/SymbolTableListTraits.h
include/llvm/ValueSymbolTable.h
lib/VMCore/BasicBlock.cpp
lib/VMCore/Function.cpp
lib/VMCore/Module.cpp
lib/VMCore/SymbolTableListTraitsImpl.h
lib/VMCore/Type.cpp