]> granicus.if.org Git - llvm/commitdiff
[MachineScheduler] Put SchedRegion in an anonymous namespace.
authorMikael Holmen <mikael.holmen@ericsson.com>
Wed, 13 Sep 2017 14:07:47 +0000 (14:07 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Wed, 13 Sep 2017 14:07:47 +0000 (14:07 +0000)
Summary: It pollutes the global namespace otherwise.

Patch by: Bevin Hansson

Reviewers: jonpa

Reviewed By: jonpa

Subscribers: MatzeB, javed.absar, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313148 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index c64eccd286d8fd900a391701c4e67a03e67d0b69..576ad11841fc4fa3ed871fb1956d825a99e5c17e 100644 (file)
@@ -437,6 +437,7 @@ static bool isSchedBoundary(MachineBasicBlock::iterator MI,
 }
 
 /// A region of an MBB for scheduling.
+namespace {
 struct SchedRegion {
   /// RegionBegin is the first instruction in the scheduling region, and
   /// RegionEnd is either MBB->end() or the scheduling boundary after the
@@ -451,6 +452,7 @@ struct SchedRegion {
               unsigned N) :
     RegionBegin(B), RegionEnd(E), NumRegionInstrs(N) {}
 };
+} // end anonymous namespace
 
 using MBBRegionsVector = SmallVector<SchedRegion, 16>;