Replace old DEBUG macro with new LLVM_DEBUG

...using a sed command provided by Vedant:

$ find . -name \*.cpp -print -exec sed -i "" -E "s/ DEBUG\(/ LLVM_DEBUG(/g" {} \;
This commit is contained in:
Jordan Rose
2018-07-20 14:37:07 -07:00
parent d7c503d2ce
commit cefb0b62ba
114 changed files with 1018 additions and 1018 deletions

View File

@@ -119,7 +119,7 @@ static SILBasicBlock *insertBackedgeBlock(SILLoop *L, DominanceInfo *DT,
// Create and insert the new backedge block...
SILBasicBlock *BEBlock = F->createBasicBlock(BackedgeBlocks.back());
DEBUG(llvm::dbgs() << " Inserting unique backedge block " << *BEBlock
LLVM_DEBUG(llvm::dbgs() << " Inserting unique backedge block " << *BEBlock
<< "\n");
// Now that the block has been inserted into the function, create PHI nodes in
@@ -197,12 +197,12 @@ static bool canonicalizeLoopExitBlocks(SILLoop *L, DominanceInfo *DT,
// This is unfortunate but necessary since splitCriticalEdge may change IDs.
#ifndef NDEBUG
llvm::SmallString<5> OldExitingBlockName;
DEBUG({
LLVM_DEBUG({
llvm::raw_svector_ostream buffer(OldExitingBlockName);
ExitingBlock->printAsOperand(buffer);
});
llvm::SmallString<5> OldSuccBBName;
DEBUG({
LLVM_DEBUG({
llvm::raw_svector_ostream buffer(OldSuccBBName);
SuccBB->printAsOperand(buffer);
});
@@ -210,7 +210,7 @@ static bool canonicalizeLoopExitBlocks(SILLoop *L, DominanceInfo *DT,
// Split any critical edges in between exiting block and succ iter.
if (splitCriticalEdge(ExitingBlock->getTerminator(), i, DT, LI)) {
DEBUG(llvm::dbgs() << "Split critical edge from " << OldExitingBlockName
LLVM_DEBUG(llvm::dbgs() << "Split critical edge from " << OldExitingBlockName
<< " NewID: ";
ExitingBlock->printAsOperand(llvm::dbgs());
llvm::dbgs() << " -> OldID: " << OldSuccBBName << " NewID: ";