diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-13 20:57:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-13 20:57:00 +0000 |
commit | 149376dee58bb1ab2139ddf2851405c038112cdf (patch) | |
tree | 217ce99d05c6c1a2a8b0bf27915f8648804645d7 /llvm/lib/VMCore/AsmWriter.cpp | |
parent | 69ce8674b5edeb6a1c8290cb7eefcd44ab28f3a2 (diff) | |
download | bcm5719-llvm-149376dee58bb1ab2139ddf2851405c038112cdf.tar.gz bcm5719-llvm-149376dee58bb1ab2139ddf2851405c038112cdf.zip |
- Change Function's so that their argument list is populated when they are
constructed. Before, external functions would have an empty argument list,
now a Function ALWAYS has a populated argument list.
llvm-svn: 4149
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index f43fda9087d..e27bd26ba27 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -607,17 +607,8 @@ void AssemblyWriter::printFunction(const Function *F) { // Loop over the arguments, printing them... const FunctionType *FT = F->getFunctionType(); - if (!F->isExternal()) { - for(Function::const_aiterator I = F->abegin(), E = F->aend(); I != E; ++I) - printArgument(I); - } else { - // Loop over the arguments, printing them... - for (FunctionType::ParamTypes::const_iterator I = FT->getParamTypes().begin(), - E = FT->getParamTypes().end(); I != E; ++I) { - if (I != FT->getParamTypes().begin()) Out << ", "; - printType(*I); - } - } + for(Function::const_aiterator I = F->abegin(), E = F->aend(); I != E; ++I) + printArgument(I); // Finish printing arguments... if (FT->isVarArg()) { |