diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-17 04:31:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-17 04:31:29 +0000 |
commit | 18feb92e917a029b72a338e91b5b93f74d26f406 (patch) | |
tree | 12bcbaace06f3f31a5c5937c57907b39b18f474d /lib/VMCore | |
parent | 15b782300691dab380cd11761c09f48606c0d2b7 (diff) | |
download | external_llvm-18feb92e917a029b72a338e91b5b93f74d26f406.zip external_llvm-18feb92e917a029b72a338e91b5b93f74d26f406.tar.gz external_llvm-18feb92e917a029b72a338e91b5b93f74d26f406.tar.bz2 |
merge several fields in GlobalValue to use the same word, move CallingConv
field into SubclassData in Value. This shrinks GlobalVAlue from 48->40
bytes, Function from 88->76, and GlobalVariable from 76->68. This trims
4640 bytes off my testcase, reading a bc file without materializing any
functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Function.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index e47798e..dbd2148 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -142,7 +142,6 @@ Function::Function(const FunctionType *Ty, LinkageTypes Linkage, const std::string &name, Module *ParentModule) : GlobalValue(PointerType::get(Ty), Value::FunctionVal, 0, 0, Linkage, name) { ParamAttrs = 0; - CallingConvention = 0; SymTab = new ValueSymbolTable(); assert((getReturnType()->isFirstClassType() ||getReturnType() == Type::VoidTy) |