Add a trivial virtual dtor to AbstractRegisterDescription to appease
authorMatt Beaumont-Gay <matthewbg@google.com>
Tue, 9 Nov 2010 19:56:25 +0000 (19:56 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Tue, 9 Nov 2010 19:56:25 +0000 (19:56 +0000)
-Wnon-virtual-dtor.

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

lib/CodeGen/LiveIntervalUnion.h

index f0bce470875097d609b0ff688953279e9c3d839b..cb07653368a73bf7c0c907037be5df90e2aefc8b 100644 (file)
@@ -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