diff options
| author | Johannes Doerfert <jdoerfert@anl.gov> | 2019-10-07 23:30:04 +0000 |
|---|---|---|
| committer | Johannes Doerfert <jdoerfert@anl.gov> | 2019-10-07 23:30:04 +0000 |
| commit | 748538e166ef64e8c9bddc7736cc9d44a5574092 (patch) | |
| tree | 5c86e1084727ddc2dcfa793b36fc77819637ad99 /llvm/lib | |
| parent | d4bea8830c919ea74eb2a618a0dd6a067654fb97 (diff) | |
| download | bcm5719-llvm-748538e166ef64e8c9bddc7736cc9d44a5574092.tar.gz bcm5719-llvm-748538e166ef64e8c9bddc7736cc9d44a5574092.zip | |
[Attributor][NFC] Add debug output
llvm-svn: 373988
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 5 |
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( |

