[PATCH] D37555: [MachineScheduler] Put SchedRegion in an anonymous namespace.
Bevin Hansson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 7 01:51:56 PDT 2017
bevinh created this revision.
Herald added subscribers: javed.absar, MatzeB.
It pollutes the global namespace otherwise.
https://reviews.llvm.org/D37555
Files:
lib/CodeGen/MachineScheduler.cpp
Index: lib/CodeGen/MachineScheduler.cpp
===================================================================
--- lib/CodeGen/MachineScheduler.cpp
+++ lib/CodeGen/MachineScheduler.cpp
@@ -440,6 +440,7 @@
}
/// 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
@@ -453,6 +454,7 @@
unsigned N) :
RegionBegin(B), RegionEnd(E), NumRegionInstrs(N) {}
};
+}
typedef SmallVector<SchedRegion, 16> MBBRegionsVector;
static void
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37555.114131.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170907/89b67e10/attachment.bin>
More information about the llvm-commits
mailing list