summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
diff options
context:
space:
mode:
authorNicola Zaghen <nicola.zaghen@imgtec.com>2018-05-15 16:37:45 +0000
committerNicola Zaghen <nicola.zaghen@imgtec.com>2018-05-15 16:37:45 +0000
commit0efd52487e95f18c88f9c55791d733efccb29079 (patch)
tree9c801eb8010132407de5189c96b05c469f95bc5c /clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
parent6043fd21b6a36de96bfeafba12bcf5f52cad8fee (diff)
downloadbcm5719-llvm-0efd52487e95f18c88f9c55791d733efccb29079.tar.gz
bcm5719-llvm-0efd52487e95f18c88f9c55791d733efccb29079.zip
[clang-tools-extra] Update uses of 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 Differential Revision: https://reviews.llvm.org/D44976 llvm-svn: 332371
Diffstat (limited to 'clang-tools-extra/clang-move/HelperDeclRefGraph.cpp')
-rw-r--r--clang-tools-extra/clang-move/HelperDeclRefGraph.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp b/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
index 00ab9ea651f..28200e0b1c9 100644
--- a/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
+++ b/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
@@ -116,9 +116,9 @@ void HelperDeclRGBuilder::run(
if (const auto *FuncRef = Result.Nodes.getNodeAs<DeclRefExpr>("func_ref")) {
const auto *DC = Result.Nodes.getNodeAs<Decl>("dc");
assert(DC);
- DEBUG(llvm::dbgs() << "Find helper function usage: "
- << FuncRef->getDecl()->getNameAsString() << " ("
- << FuncRef->getDecl() << ")\n");
+ LLVM_DEBUG(llvm::dbgs() << "Find helper function usage: "
+ << FuncRef->getDecl()->getNameAsString() << " ("
+ << FuncRef->getDecl() << ")\n");
RG->addEdge(
getOutmostClassOrFunDecl(DC->getCanonicalDecl()),
getOutmostClassOrFunDecl(FuncRef->getDecl()->getCanonicalDecl()));
@@ -126,9 +126,9 @@ void HelperDeclRGBuilder::run(
Result.Nodes.getNodeAs<CXXRecordDecl>("used_class")) {
const auto *DC = Result.Nodes.getNodeAs<Decl>("dc");
assert(DC);
- DEBUG(llvm::dbgs() << "Find helper class usage: "
- << UsedClass->getNameAsString() << " (" << UsedClass
- << ")\n");
+ LLVM_DEBUG(llvm::dbgs()
+ << "Find helper class usage: " << UsedClass->getNameAsString()
+ << " (" << UsedClass << ")\n");
RG->addEdge(getOutmostClassOrFunDecl(DC->getCanonicalDecl()), UsedClass);
}
}
OpenPOWER on IntegriCloud