forked from OSchip/llvm-project
parent
883b73f0a8
commit
eb64b6a922
|
@ -941,6 +941,8 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
|
|||
if (FT->isVarArg() && !FT->getParamTypes().empty()) {
|
||||
if (FT->getParamTypes().size()) FunctionInnards << ", ";
|
||||
FunctionInnards << "..."; // Output varargs portion of signature!
|
||||
} else if (!FT->isVarArg() && FT->getParamTypes().empty()) {
|
||||
FunctionInnards << "void"; // ret() -> ret(void) in C.
|
||||
}
|
||||
FunctionInnards << ")";
|
||||
// Print out the return type and the entire signature for that matter
|
||||
|
|
Loading…
Reference in New Issue