[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 13 15:58:01 PDT 2002
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.78 -> 1.79
---
Log message:
- 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.
---
Diffs of the changes:
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.78 llvm/lib/VMCore/AsmWriter.cpp:1.79
--- llvm/lib/VMCore/AsmWriter.cpp:1.78 Sun Oct 6 17:48:09 2002
+++ llvm/lib/VMCore/AsmWriter.cpp Sun Oct 13 15:57:00 2002
@@ -607,17 +607,8 @@
// 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()) {
More information about the llvm-commits
mailing list