From 39220ded940aa408d5dce9b8ab33e87e1d7a23d7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Mar 2005 05:03:36 +0000 Subject: [PATCH] stop using arg_front git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20599 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 2 +- lib/Target/CBackend/Writer.cpp | 2 +- lib/VMCore/AsmWriter.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 254b5a488ff..cebff7508c2 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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 << ", "; diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 254b5a488ff..cebff7508c2 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -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 << ", "; diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 3f72cfbb900..1049f962a49 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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());