summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-17 04:31:29 +0000
committerChris Lattner <sabre@nondot.org>2007-04-17 04:31:29 +0000
commit3c2ff10b93def1b4a807134588ffab55d1e231f3 (patch)
tree37893002d0f6615652515b238b75ee057f0eacc7 /llvm/lib/VMCore/Function.cpp
parent2077814c91223f879f6b49470bec627ab7f326f7 (diff)
downloadbcm5719-llvm-3c2ff10b93def1b4a807134588ffab55d1e231f3.tar.gz
bcm5719-llvm-3c2ff10b93def1b4a807134588ffab55d1e231f3.zip
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. llvm-svn: 36192
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index e47798e12cd..dbd21481c0c 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud