mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 09:22:31 +00:00
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:
parent
c5e7df1d60
commit
39220ded94
@ -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 << ", ";
|
||||
|
@ -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 << ", ";
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user