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 << ", ";
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 << ", ";
///
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());