summaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-09 04:14:01 +0000
committerChris Lattner <sabre@nondot.org>2004-02-09 04:14:01 +0000
commitd5d89967206e1153d24abdb7b22002f7533f55c7 (patch)
treedd63c2f411779dd7b2087561d14d924440362ba8 /lib/Bytecode/Writer
parent36cb08ae5bc991bb91f1ab566100c2cdd25c344c (diff)
downloadllvm-d5d89967206e1153d24abdb7b22002f7533f55c7.tar.gz
llvm-d5d89967206e1153d24abdb7b22002f7533f55c7.tar.bz2
llvm-d5d89967206e1153d24abdb7b22002f7533f55c7.tar.xz
Start using the new and improve interface to FunctionType arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer')
-rw-r--r--lib/Bytecode/Writer/ConstantWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp
index 6fe596872e..6d49165b02 100644
--- a/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -34,12 +34,12 @@ void BytecodeWriter::outputType(const Type *T) {
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);