diff options
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 1719bc532f..cc62e6007d 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -107,7 +107,12 @@ bool AssemblyWriter::visitMethod(const Method *M) { bool AssemblyWriter::processConstPool(const ConstantPool &CP, bool isMethod) { // Done printing arguments... - if (isMethod) Out << ")\n"; + if (isMethod) { + if (CP.getParentV()->castMethodAsserting()->getType()-> + isMethodType()->isVarArg()) + Out << ", ..."; // Output varargs portion of signature! + Out << ")\n"; + } ModuleAnalyzer::processConstPool(CP, isMethod); |