summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@anl.gov>2019-10-07 23:30:04 +0000
committerJohannes Doerfert <jdoerfert@anl.gov>2019-10-07 23:30:04 +0000
commit748538e166ef64e8c9bddc7736cc9d44a5574092 (patch)
tree5c86e1084727ddc2dcfa793b36fc77819637ad99 /llvm/lib/Transforms/IPO
parentd4bea8830c919ea74eb2a618a0dd6a067654fb97 (diff)
downloadbcm5719-llvm-748538e166ef64e8c9bddc7736cc9d44a5574092.tar.gz
bcm5719-llvm-748538e166ef64e8c9bddc7736cc9d44a5574092.zip
[Attributor][NFC] Add debug output
llvm-svn: 373988
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/Attributor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index f314f69755f..629be921fb4 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -3930,8 +3930,11 @@ bool Attributor::checkForAllCallSites(
// hence the function has internal linkage.
const IRPosition &IRP = QueryingAA.getIRPosition();
const Function *AssociatedFunction = IRP.getAssociatedFunction();
- if (!AssociatedFunction)
+ if (!AssociatedFunction) {
+ LLVM_DEBUG(dbgs() << "[Attributor] No function associated with " << IRP
+ << "\n");
return false;
+ }
if (RequireAllCallSites && !AssociatedFunction->hasLocalLinkage()) {
LLVM_DEBUG(
OpenPOWER on IntegriCloud