diff options
| author | Johannes Doerfert <jdoerfert@anl.gov> | 2019-08-14 22:04:28 +0000 |
|---|---|---|
| committer | Johannes Doerfert <jdoerfert@anl.gov> | 2019-08-14 22:04:28 +0000 |
| commit | 5304b72a81acca7e0d9c5cdf5f0d6705a310925b (patch) | |
| tree | 093f9fc19c8524fff57b9e1f15b08c79ebebe5b3 /llvm/lib/Transforms | |
| parent | 7b0515176b15715e554cf46f896eaf07da7b49f0 (diff) | |
| download | bcm5719-llvm-5304b72a81acca7e0d9c5cdf5f0d6705a310925b.tar.gz bcm5719-llvm-5304b72a81acca7e0d9c5cdf5f0d6705a310925b.zip | |
[Attributor][NFC] Make debug output consistent
llvm-svn: 368931
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 5f1e81e7e52..aac00d5b994 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -2126,7 +2126,7 @@ bool Attributor::checkForAllCallSites(const function_ref<bool(CallSite)> &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<bool(CallSite)> &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<bool(CallSite)> &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 <typename AAType> -static AAType *checkAndRegisterAA(IRPosition &IRP, Attributor &A, +static AAType *checkAndRegisterAA(const IRPosition &IRP, Attributor &A, DenseSet<const char *> *Whitelist) { if (Whitelist && !Whitelist->count(&AAType::ID)) return nullptr; |

