mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Add a default constructor for LiveRange.
It is useful to be able to create temporary LiveRange object whose members are filled in later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
49deebb5eb
commit
2319a23979
@ -86,9 +86,10 @@ namespace llvm {
|
|||||||
SlotIndex end; // End point of the interval (exclusive)
|
SlotIndex end; // End point of the interval (exclusive)
|
||||||
VNInfo *valno; // identifier for the value contained in this interval.
|
VNInfo *valno; // identifier for the value contained in this interval.
|
||||||
|
|
||||||
|
LiveRange() : valno(0) {}
|
||||||
|
|
||||||
LiveRange(SlotIndex S, SlotIndex E, VNInfo *V)
|
LiveRange(SlotIndex S, SlotIndex E, VNInfo *V)
|
||||||
: start(S), end(E), valno(V) {
|
: start(S), end(E), valno(V) {
|
||||||
|
|
||||||
assert(S < E && "Cannot create empty or backwards range");
|
assert(S < E && "Cannot create empty or backwards range");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user