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

@@ -47,7 +47,7 @@ SILFunction *SerializedSILLoader::lookupSILFunction(SILFunction *Callee) {
SILFunction *retVal = nullptr;
for (auto &Des : LoadedSILSections) {
if (auto Func = Des->lookupSILFunction(Callee)) {
DEBUG(llvm::dbgs() << "Deserialized " << Func->getName() << " from "
LLVM_DEBUG(llvm::dbgs() << "Deserialized " << Func->getName() << " from "
<< Des->getModuleIdentifier().str() << "\n");
if (!Func->empty())
return Func;
@@ -65,12 +65,12 @@ SILFunction *SerializedSILLoader::lookupSILFunction(StringRef Name,
SILFunction *retVal = nullptr;
for (auto &Des : LoadedSILSections) {
if (auto Func = Des->lookupSILFunction(Name, declarationOnly)) {
DEBUG(llvm::dbgs() << "Deserialized " << Func->getName() << " from "
LLVM_DEBUG(llvm::dbgs() << "Deserialized " << Func->getName() << " from "
<< Des->getModuleIdentifier().str() << "\n");
if (Linkage) {
// This is not the linkage we are looking for.
if (Func->getLinkage() != *Linkage) {
DEBUG(llvm::dbgs()
LLVM_DEBUG(llvm::dbgs()
<< "Wrong linkage for Function: " << Func->getName() << " : "
<< (int)Func->getLinkage() << "\n");
Des->invalidateFunction(Func);