[llvm-commits] CVS: llvm/lib/Bytecode/Writer/ConstantWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 8 22:17:26 PST 2004


Changes in directory llvm/lib/Bytecode/Writer:

ConstantWriter.cpp updated: 1.34 -> 1.35

---
Log message:

Start using the new and improve interface to FunctionType arguments


---
Diffs of the changes:  (+4 -4)

Index: llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff -u llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.34 llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.35
--- llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.34	Sat Jan 31 19:50:31 2004
+++ llvm/lib/Bytecode/Writer/ConstantWriter.cpp	Sun Feb  8 22:13:43 2004
@@ -34,12 +34,12 @@
     assert(Slot != -1 && "Type used but not available!!");
     output_vbr((unsigned)Slot, Out);
 
-    // Output the number of arguments to method (+1 if varargs):
-    output_vbr((unsigned)MT->getParamTypes().size()+MT->isVarArg(), Out);
+    // Output the number of arguments to function (+1 if varargs):
+    output_vbr((unsigned)MT->getNumParams()+MT->isVarArg(), Out);
 
     // Output all of the arguments...
-    FunctionType::ParamTypes::const_iterator I = MT->getParamTypes().begin();
-    for (; I != MT->getParamTypes().end(); ++I) {
+    FunctionType::param_iterator I = MT->param_begin();
+    for (; I != MT->param_end(); ++I) {
       Slot = Table.getSlot(*I);
       assert(Slot != -1 && "Type used but not available!!");
       output_vbr((unsigned)Slot, Out);





More information about the llvm-commits mailing list