mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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: ";
|
||||
|
||||
Reference in New Issue
Block a user