diff options
| author | Nicola Zaghen <nicola.zaghen@imgtec.com> | 2018-05-14 12:53:11 +0000 | 
|---|---|---|
| committer | Nicola Zaghen <nicola.zaghen@imgtec.com> | 2018-05-14 12:53:11 +0000 | 
| commit | d34e60ca8532511acb8c93ef26297e349fbec86a (patch) | |
| tree | 1a095bc8694498d94232e81b95c1da05d462d3ec /llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | |
| parent | affbc99bea94e77f7ebccd8ba887e33051bd04ee (diff) | |
| download | bcm5719-llvm-d34e60ca8532511acb8c93ef26297e349fbec86a.tar.gz bcm5719-llvm-d34e60ca8532511acb8c93ef26297e349fbec86a.zip | |
Rename DEBUG macro to LLVM_DEBUG.
    
The DEBUG() macro is very generic so it might clash with other projects.
The renaming was done as follows:
- git grep -l 'DEBUG' | xargs sed -i 's/\bDEBUG\s\?(/LLVM_DEBUG(/g'
- git diff -U0 master | ../clang/tools/clang-format/clang-format-diff.py -i -p1 -style LLVM
- Manual change to APInt
- Manually chage DOCS as regex doesn't match it.
In the transition period the DEBUG() macro is still present and aliased
to the LLVM_DEBUG() one.
Differential Revision: https://reviews.llvm.org/D43624
llvm-svn: 332240
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 49f7c330be8..c8eb680bbdf 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -316,7 +316,7 @@ namespace {             ReturnBlock(1, os) {        this->os = os; -      DEBUG(dbgs() << "Function: " << getFunctionName(SP) << "\n"); +      LLVM_DEBUG(dbgs() << "Function: " << getFunctionName(SP) << "\n");        uint32_t i = 0;        for (auto &BB : *F) { @@ -384,7 +384,7 @@ namespace {        for (int i = 0, e = Blocks.size() + 1; i != e; ++i) {          write(0);  // No flags on our blocks.        } -      DEBUG(dbgs() << Blocks.size() << " blocks.\n"); +      LLVM_DEBUG(dbgs() << Blocks.size() << " blocks.\n");        // Emit edges between blocks.        if (Blocks.empty()) return; @@ -397,8 +397,8 @@ namespace {          write(Block.OutEdges.size() * 2 + 1);          write(Block.Number);          for (int i = 0, e = Block.OutEdges.size(); i != e; ++i) { -          DEBUG(dbgs() << Block.Number << " -> " << Block.OutEdges[i]->Number -                       << "\n"); +          LLVM_DEBUG(dbgs() << Block.Number << " -> " +                            << Block.OutEdges[i]->Number << "\n");            write(Block.OutEdges[i]->Number);            write(0);  // no flags          } | 

