[llvm] r253030 - [GlobalOpt] Make sure all debug lines end with '\n'
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 03:05:13 PST 2015
Author: jamesm
Date: Fri Nov 13 05:05:13 2015
New Revision: 253030
URL: http://llvm.org/viewvc/llvm-project?rev=253030&view=rev
Log:
[GlobalOpt] Make sure all debug lines end with '\n'
GlobalVariable::print() used to emit a newline. It hasn't for a while now, but these debug lines weren't updated.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=253030&r1=253029&r2=253030&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Fri Nov 13 05:05:13 2015
@@ -1738,7 +1738,7 @@ bool GlobalOpt::ProcessInternalGlobal(Gl
GS.AccessingFunction->getName() == "main" &&
GS.AccessingFunction->hasExternalLinkage() &&
GV->getType()->getAddressSpace() == 0) {
- DEBUG(dbgs() << "LOCALIZING GLOBAL: " << *GV);
+ DEBUG(dbgs() << "LOCALIZING GLOBAL: " << *GV << "\n");
Instruction &FirstI = const_cast<Instruction&>(*GS.AccessingFunction
->getEntryBlock().begin());
Type *ElemTy = GV->getType()->getElementType();
@@ -1757,7 +1757,7 @@ bool GlobalOpt::ProcessInternalGlobal(Gl
// If the global is never loaded (but may be stored to), it is dead.
// Delete it now.
if (!GS.IsLoaded) {
- DEBUG(dbgs() << "GLOBAL NEVER LOADED: " << *GV);
+ DEBUG(dbgs() << "GLOBAL NEVER LOADED: " << *GV << "\n");
bool Changed;
if (isLeakCheckerRoot(GV)) {
More information about the llvm-commits
mailing list