[llvm] r175639 - Add a default constructor for LiveRange.
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Feb 20 09:46:52 PST 2013
Author: stoklund
Date: Wed Feb 20 11:46:51 2013
New Revision: 175639
URL: http://llvm.org/viewvc/llvm-project?rev=175639&view=rev
Log:
Add a default constructor for LiveRange.
It is useful to be able to create temporary LiveRange object whose
members are filled in later.
Modified:
llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=175639&r1=175638&r2=175639&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Wed Feb 20 11:46:51 2013
@@ -86,9 +86,10 @@ namespace llvm {
SlotIndex end; // End point of the interval (exclusive)
VNInfo *valno; // identifier for the value contained in this interval.
+ LiveRange() : valno(0) {}
+
LiveRange(SlotIndex S, SlotIndex E, VNInfo *V)
: start(S), end(E), valno(V) {
-
assert(S < E && "Cannot create empty or backwards range");
}
More information about the llvm-commits
mailing list