aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2010-11-09 19:56:25 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2010-11-09 19:56:25 +0000
commite33daaaaf9d67f30b141430bffc34bbda93063d1 (patch)
treef8a79429fa11cd0a2d328b4a3bcd31347466b565
parent4a53f37a1af2eb68a8153ba7c14321f41653a7a6 (diff)
Add a trivial virtual dtor to AbstractRegisterDescription to appease
-Wnon-virtual-dtor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118616 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LiveIntervalUnion.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalUnion.h b/lib/CodeGen/LiveIntervalUnion.h
index f0bce47087..cb07653368 100644
--- a/lib/CodeGen/LiveIntervalUnion.h
+++ b/lib/CodeGen/LiveIntervalUnion.h
@@ -66,6 +66,17 @@ inline bool overlap(const LiveRange &lvrSeg, const LiveSegment &liuSeg) {
return lvrSeg.start < liuSeg.end && liuSeg.start < lvrSeg.end;
}
+template <> struct isPodLike<LiveSegment> { static const bool value = true; };
+
+raw_ostream& operator<<(raw_ostream& os, const LiveSegment &ls);
+
+/// Abstraction to provide info for the representative register.
+class AbstractRegisterDescription {
+public:
+ virtual const char *getName(unsigned reg) const = 0;
+ virtual ~AbstractRegisterDescription() { }
+};
+
/// Union of live intervals that are strong candidates for coalescing into a
/// single register (either physical or virtual depending on the context). We
/// expect the constituent live intervals to be disjoint, although we may