aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp7
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);