diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:01:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:01:55 +0000 |
commit | 57698e2c0bf6853a66f06a5ec5014c53001de006 (patch) | |
tree | cb10a0c04ac9b03816baad3862b1f9ff2bacb738 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | 5d088b00bf14601f3f44573e9665a9668ea74603 (diff) | |
download | bcm5719-llvm-57698e2c0bf6853a66f06a5ec5014c53001de006.tar.gz bcm5719-llvm-57698e2c0bf6853a66f06a5ec5014c53001de006.zip |
Change references from Method to Function
change references from MethodARgument to FunctionArgument
llvm-svn: 1991
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index cab257f6ec9..0b2e935ed4e 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -280,12 +280,12 @@ bool BytecodeParser::ParseMethod(const uchar *&Buf, const uchar *EndBuf, const MethodType::ParamTypes &Params = MTy->getParamTypes(); for (MethodType::ParamTypes::const_iterator It = Params.begin(); It != Params.end(); ++It) { - MethodArgument *MA = new MethodArgument(*It); - if (insertValue(MA, Values) == -1) { + FunctionArgument *FA = new FunctionArgument(*It); + if (insertValue(FA, Values) == -1) { Error = "Error reading method arguments!\n"; delete M; return failure(true); } - M->getArgumentList().push_back(MA); + M->getArgumentList().push_back(FA); } while (Buf < EndBuf) { @@ -352,7 +352,7 @@ bool BytecodeParser::ParseMethod(const uchar *&Buf, const uchar *EndBuf, assert(!getTypeSlot(MTy, type) && "How can meth type not exist?"); getTypeSlot(PMTy, type); - C->getMethodList().push_back(M); + C->getFunctionList().push_back(M); // Replace placeholder with the real method pointer... ModuleValues[type][MethSlot] = M; |