From 79da6ef84ff0caae6ae904840ec5bc975b6de4e7 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 12 Sep 2012 09:55:51 +0000 Subject: [PATCH] =?UTF-8?q?When=20calling=20print=20directly=20on=20a=20gl?= =?UTF-8?q?obal=20(eg=20from=20the=20debugger)=20it=20was=20printing=20a?= =?UTF-8?q?=20newline=20that=20doesn't=20occur=20when=20printing=20other?= =?UTF-8?q?=20kinds=20of=20LLVM=20values.=20=20Move=20the=20printing=20of?= =?UTF-8?q?=20that=20newline=20elsewhere,=20making=20globals=20print=20the?= =?UTF-8?q?=20same=20as=20other=20values=20while=20leaving=20the=20output?= =?UTF-8?q?=20when=20printing=20an=20entire=20module=20unchanged.=20=20Pat?= =?UTF-8?q?ch=20by=20Sa=C5=A1a=20Tomi=C4=87.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163693 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index f3f24ae5c8b..f2945ac88ff 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1288,8 +1288,9 @@ void AssemblyWriter::printModule(const Module *M) { // Output all globals. if (!M->global_empty()) Out << '\n'; for (Module::const_global_iterator I = M->global_begin(), E = M->global_end(); - I != E; ++I) - printGlobal(I); + I != E; ++I) { + printGlobal(I); Out << '\n'; + } // Output all aliases. if (!M->alias_empty()) Out << "\n"; @@ -1439,7 +1440,6 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) { Out << ", align " << GV->getAlignment(); printInfoComment(*GV); - Out << '\n'; } void AssemblyWriter::printAlias(const GlobalAlias *GA) {