[llvm] dcbe58d - [Attributor][NFCI] Remove unneeded namespace

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 29 07:39:05 PDT 2021


Author: Johannes Doerfert
Date: 2021-06-29T09:38:20-05:00
New Revision: dcbe58d94c843e443113bff5f60fbcccc4168714

URL: https://github.com/llvm/llvm-project/commit/dcbe58d94c843e443113bff5f60fbcccc4168714
DIFF: https://github.com/llvm/llvm-project/commit/dcbe58d94c843e443113bff5f60fbcccc4168714.diff

LOG: [Attributor][NFCI] Remove unneeded namespace

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 5bcdf636ca1d..78c9a6b1ac1a 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -141,8 +141,6 @@ PIPE_OPERATOR(AAFunctionReachability)
 #undef PIPE_OPERATOR
 } // namespace llvm
 
-namespace {
-
 /// Get pointer operand of memory accessing instruction. If \p I is
 /// not a memory accessing instruction, return nullptr. If \p AllowVolatile,
 /// is set to false and the instruction is volatile, return nullptr.
@@ -6468,8 +6466,6 @@ void AAMemoryBehaviorFloating::analyzeUseIn(Attributor &A, const Use *U,
     removeAssumedBits(NO_WRITES);
 }
 
-} // namespace
-
 /// -------------------- Memory Locations Attributes ---------------------------
 /// Includes read-none, argmemonly, inaccessiblememonly,
 /// inaccessiblememorargmemonly


        


More information about the llvm-commits mailing list