Skip to content

Commit

Permalink
[MachineScheduler] Put SchedRegion in an anonymous namespace.
Browse files Browse the repository at this point in the history
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

llvm-svn: 313148
  • Loading branch information
mikaelholmen committed Sep 13, 2017
1 parent dff606e commit 4eb2a96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/CodeGen/MachineScheduler.cpp
Expand Up @@ -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
Expand All @@ -451,6 +452,7 @@ struct SchedRegion {
unsigned N) :
RegionBegin(B), RegionEnd(E), NumRegionInstrs(N) {}
};
} // end anonymous namespace

using MBBRegionsVector = SmallVector<SchedRegion, 16>;

Expand Down

0 comments on commit 4eb2a96

Please sign in to comment.