projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49deebb
)
Add a default constructor for LiveRange.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Wed, 20 Feb 2013 17:46:51 +0000
(17:46 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Wed, 20 Feb 2013 17:46:51 +0000
(17:46 +0000)
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
include/llvm/CodeGen/LiveInterval.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/LiveInterval.h
b/include/llvm/CodeGen/LiveInterval.h
index 69428853cdf63e362283d2978e13da893a9cf191..05f232557b0c9c4ab3aa21706cb00d763583264f 100644
(file)
--- a/
include/llvm/CodeGen/LiveInterval.h
+++ b/
include/llvm/CodeGen/LiveInterval.h
@@
-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");
}