[llvm-commits] [llvm] r118616 - /llvm/trunk/lib/CodeGen/LiveIntervalUnion.h

Matt Beaumont-Gay matthewbg at google.com
Tue Nov 9 11:56:25 PST 2010


Author: matthewbg
Date: Tue Nov  9 13:56:25 2010
New Revision: 118616

URL: http://llvm.org/viewvc/llvm-project?rev=118616&view=rev
Log:
Add a trivial virtual dtor to AbstractRegisterDescription to appease
-Wnon-virtual-dtor.

Modified:
    llvm/trunk/lib/CodeGen/LiveIntervalUnion.h

Modified: llvm/trunk/lib/CodeGen/LiveIntervalUnion.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalUnion.h?rev=118616&r1=118615&r2=118616&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalUnion.h (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalUnion.h Tue Nov  9 13:56:25 2010
@@ -66,6 +66,17 @@
   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





More information about the llvm-commits mailing list