[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp

Chris Lattner sabre at nondot.org
Mon Apr 16 21:32:01 PDT 2007



Changes in directory llvm/lib/VMCore:

Function.cpp updated: 1.123 -> 1.124
---
Log message:

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.


---
Diffs of the changes:  (+0 -1)

 Function.cpp |    1 -
 1 files changed, 1 deletion(-)


Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.123 llvm/lib/VMCore/Function.cpp:1.124
--- llvm/lib/VMCore/Function.cpp:1.123	Mon Apr 16 23:04:14 2007
+++ llvm/lib/VMCore/Function.cpp	Mon Apr 16 23:31:29 2007
@@ -142,7 +142,6 @@
                    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)






More information about the llvm-commits mailing list