diff options
| author | James Molloy <james.molloy@arm.com> | 2015-11-13 11:05:13 +0000 |
|---|---|---|
| committer | James Molloy <james.molloy@arm.com> | 2015-11-13 11:05:13 +0000 |
| commit | 33e73458861f66d3bdecf4c45a7f60c1f51ebb10 (patch) | |
| tree | 57eb3138f56fb866c768a35c88b49f39cc2e0e7e /llvm/lib/Transforms/IPO | |
| parent | ea31ad3b277347808044deee45a63cc69c64cfb1 (diff) | |
| download | bcm5719-llvm-33e73458861f66d3bdecf4c45a7f60c1f51ebb10.tar.gz bcm5719-llvm-33e73458861f66d3bdecf4c45a7f60c1f51ebb10.zip | |
[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.
llvm-svn: 253030
Diffstat (limited to 'llvm/lib/Transforms/IPO')
| -rw-r--r-- | llvm/lib/Transforms/IPO/GlobalOpt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp index 73b8b5d5924..7bd0d701983 100644 --- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp +++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp @@ -1738,7 +1738,7 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV, 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(GlobalVariable *GV, // 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)) { |

