stop using arg_front

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-03-15 05:03:36 +00:00
parent c5e7df1d60
commit 39220ded94
3 changed files with 3 additions and 3 deletions

View File

@ -1079,7 +1079,7 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
std::string ArgName;
if (F->arg_begin()->hasName() || !Prototype)
ArgName = Mang->getValueName(F->arg_begin());
printType(FunctionInnards, F->arg_front().getType(), ArgName);
printType(FunctionInnards, F->arg_begin()->getType(), ArgName);
for (Function::const_arg_iterator I = ++F->arg_begin(), E = F->arg_end();
I != E; ++I) {
FunctionInnards << ", ";

View File

@ -1079,7 +1079,7 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
std::string ArgName;
if (F->arg_begin()->hasName() || !Prototype)
ArgName = Mang->getValueName(F->arg_begin());
printType(FunctionInnards, F->arg_front().getType(), ArgName);
printType(FunctionInnards, F->arg_begin()->getType(), ArgName);
for (Function::const_arg_iterator I = ++F->arg_begin(), E = F->arg_end();
I != E; ++I) {
FunctionInnards << ", ";

View File

@ -956,7 +956,7 @@ void AssemblyWriter::printFunction(const Function *F) {
///
void AssemblyWriter::printArgument(const Argument *Arg) {
// Insert commas as we go... the first arg doesn't get a comma
if (Arg != &Arg->getParent()->arg_front()) Out << ", ";
if (Arg != Arg->getParent()->arg_begin()) Out << ", ";
// Output type...
printType(Arg->getType());