llvm.org GIT mirror llvm / 79da6ef
When calling print directly on a global (eg from the debugger) it was printing a newline that doesn't occur when printing other kinds of LLVM values. Move the printing of that newline elsewhere, making globals print the same as other values while leaving the output when printing an entire module unchanged. Patch by Saša Tomić. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163693 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 7 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
12871287 // Output all globals.
12881288 if (!M->global_empty()) Out << '\n';
12891289 for (Module::const_global_iterator I = M->global_begin(), E = M->global_end();
1290 I != E; ++I)
1291 printGlobal(I);
1290 I != E; ++I) {
1291 printGlobal(I); Out << '\n';
1292 }
12921293
12931294 // Output all aliases.
12941295 if (!M->alias_empty()) Out << "\n";
14381439 Out << ", align " << GV->getAlignment();
14391440
14401441 printInfoComment(*GV);
1441 Out << '\n';
14421442 }
14431443
14441444 void AssemblyWriter::printAlias(const GlobalAlias *GA) {