summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-29 03:51:11 +0000
committerChris Lattner <sabre@nondot.org>2002-03-29 03:51:11 +0000
commitff87436f4827a8694d75c760414aa4a38758d9f9 (patch)
tree5aa30bf64f10078b1cf27713c3b4d53bf5043a60 /llvm/lib/Bytecode/Writer/ConstantWriter.cpp
parent91db58298aa4b717289aa25ad8d0709b1a72a70b (diff)
downloadbcm5719-llvm-ff87436f4827a8694d75c760414aa4a38758d9f9.tar.gz
bcm5719-llvm-ff87436f4827a8694d75c760414aa4a38758d9f9.zip
s/Method/Function
llvm-svn: 2035
Diffstat (limited to 'llvm/lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/ConstantWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
index 73130f3ee87..296e326445a 100644
--- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -24,8 +24,8 @@ void BytecodeWriter::outputType(const Type *T) {
return; // We might do this if we alias a prim type: %x = type int
switch (T->getPrimitiveID()) { // Handle derived types now.
- case Type::MethodTyID: {
- const MethodType *MT = cast<const MethodType>(T);
+ case Type::FunctionTyID: {
+ const FunctionType *MT = cast<const FunctionType>(T);
int Slot = Table.getValSlot(MT->getReturnType());
assert(Slot != -1 && "Type used but not available!!");
output_vbr((unsigned)Slot, Out);
@@ -34,7 +34,7 @@ void BytecodeWriter::outputType(const Type *T) {
output_vbr(MT->getParamTypes().size()+MT->isVarArg(), Out);
// Output all of the arguments...
- MethodType::ParamTypes::const_iterator I = MT->getParamTypes().begin();
+ FunctionType::ParamTypes::const_iterator I = MT->getParamTypes().begin();
for (; I != MT->getParamTypes().end(); ++I) {
Slot = Table.getValSlot(*I);
assert(Slot != -1 && "Type used but not available!!");
OpenPOWER on IntegriCloud