[llvm] r333187 - [NFC][VPlan] Wrap PlainCFGBuilder with an anonymous namespace.

Andrei Elovikov via llvm-commits llvm-commits at lists.llvm.org
Thu May 24 07:31:01 PDT 2018


Author: a.elovikov
Date: Thu May 24 07:31:00 2018
New Revision: 333187

URL: http://llvm.org/viewvc/llvm-project?rev=333187&view=rev
Log:
[NFC][VPlan] Wrap PlainCFGBuilder with an anonymous namespace.

Summary:
It's internal to the VPlanHCFGBuilder and should not be visible outside of its
translation unit.

Reviewers: dcaballe, fhahn

Reviewed By: fhahn

Subscribers: rengolin, bollu, tschuett, llvm-commits, rkruppe

Differential Revision: https://reviews.llvm.org/D47312

Modified:
    llvm/trunk/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp?rev=333187&r1=333186&r2=333187&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp Thu May 24 07:31:00 2018
@@ -30,6 +30,7 @@
 
 using namespace llvm;
 
+namespace {
 // Class that is used to build the plain CFG for the incoming IR.
 class PlainCFGBuilder {
 private:
@@ -74,6 +75,7 @@ public:
   // Build the plain CFG and return its Top Region.
   VPRegionBlock *buildPlainCFG();
 };
+} // anonymous namespace
 
 // Return true if \p Inst is an incoming Instruction to be ignored in the VPlan
 // representation.




More information about the llvm-commits mailing list