mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user