aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2017-09-13 14:07:47 +0000
committerMikael Holmen <mikael.holmen@ericsson.com>2017-09-13 14:07:47 +0000
commit4eb2a96e7f74e7c2b1ae8b8121194f2f319ed032 (patch)
tree3e85a867a545a9a9756d06807f9ff73809fb699a /llvm/lib/CodeGen/MachineScheduler.cpp
parentdff606ec3e6ebf2199c28a792948dd5328e58671 (diff)
downloadllvm-4eb2a96e7f74e7c2b1ae8b8121194f2f319ed032.zip
llvm-4eb2a96e7f74e7c2b1ae8b8121194f2f319ed032.tar.gz
llvm-4eb2a96e7f74e7c2b1ae8b8121194f2f319ed032.tar.bz2
[MachineScheduler] Put SchedRegion in an anonymous namespace.
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index c64eccd..576ad118 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -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>;