From: Johannes Doerfert Date: Wed, 14 Aug 2019 22:04:28 +0000 (+0000) Subject: [Attributor][NFC] Make debug output consistent X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c82bdcd6c89259ea817c4447d587b9067ecff3e;p=llvm [Attributor][NFC] Make debug output consistent git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368931 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/Attributor.cpp b/lib/Transforms/IPO/Attributor.cpp index 5f1e81e7e52..aac00d5b994 100644 --- a/lib/Transforms/IPO/Attributor.cpp +++ b/lib/Transforms/IPO/Attributor.cpp @@ -2126,7 +2126,7 @@ bool Attributor::checkForAllCallSites(const function_ref &Pred, if (RequireAllCallSites && !AssociatedFunction->hasInternalLinkage()) { LLVM_DEBUG( dbgs() - << "Attributor: Function " << AssociatedFunction->getName() + << "[Attributor] Function " << AssociatedFunction->getName() << " has no internal linkage, hence not all call sites are known\n"); return false; } @@ -2147,7 +2147,7 @@ bool Attributor::checkForAllCallSites(const function_ref &Pred, if (!RequireAllCallSites) continue; - LLVM_DEBUG(dbgs() << "Attributor: User " << *U.getUser() + LLVM_DEBUG(dbgs() << "[Attributor] User " << *U.getUser() << " is an invalid use of " << AssociatedFunction->getName() << "\n"); return false; @@ -2156,7 +2156,7 @@ bool Attributor::checkForAllCallSites(const function_ref &Pred, if (Pred(CS)) continue; - LLVM_DEBUG(dbgs() << "Attributor: Call site callback failed for " + LLVM_DEBUG(dbgs() << "[Attributor] Call site callback failed for " << *CS.getInstruction() << "\n"); return false; } @@ -2410,7 +2410,7 @@ ChangeStatus Attributor::run() { /// /// \returns The created abstract argument, or nullptr if none was created. template -static AAType *checkAndRegisterAA(IRPosition &IRP, Attributor &A, +static AAType *checkAndRegisterAA(const IRPosition &IRP, Attributor &A, DenseSet *Whitelist) { if (Whitelist && !Whitelist->count(&AAType::ID)) return nullptr;