[llvm] r368931 - [Attributor][NFC] Make debug output consistent

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 15:04:28 PDT 2019


Author: jdoerfert
Date: Wed Aug 14 15:04:28 2019
New Revision: 368931

URL: http://llvm.org/viewvc/llvm-project?rev=368931&view=rev
Log:
[Attributor][NFC] Make debug output consistent

Modified:
    llvm/trunk/lib/Transforms/IPO/Attributor.cpp

Modified: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Attributor.cpp?rev=368931&r1=368930&r2=368931&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp Wed Aug 14 15:04:28 2019
@@ -2126,7 +2126,7 @@ bool Attributor::checkForAllCallSites(co
   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(co
       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(co
     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;




More information about the llvm-commits mailing list