mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
Add const version of getLiveRangeForValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
102f295114
commit
b403b2c019
@ -92,10 +92,15 @@ public:
|
||||
inline const LiveRangeMapType *getLiveRangeMap() const
|
||||
{ return &LiveRangeMap; }
|
||||
|
||||
// Method sed to get the corresponding live range of a Value
|
||||
//
|
||||
inline LiveRange *getLiveRangeForValue( const Value *Val)
|
||||
{ return LiveRangeMap[Val]; }
|
||||
// Method used to get the live range containing a Value.
|
||||
// This may return NULL if no live range exists for a Value (eg, some consts)
|
||||
inline LiveRange *getLiveRangeForValue(const Value *Val) {
|
||||
return LiveRangeMap[Val];
|
||||
}
|
||||
inline const LiveRange *getLiveRangeForValue(const Value *Val) const {
|
||||
LiveRangeMapType::const_iterator I = LiveRangeMap.find(Val);
|
||||
return I->second;
|
||||
}
|
||||
|
||||
// Method for coalescing live ranges. Called only after interference info
|
||||
// is calculated.
|
||||
|
@ -92,10 +92,15 @@ public:
|
||||
inline const LiveRangeMapType *getLiveRangeMap() const
|
||||
{ return &LiveRangeMap; }
|
||||
|
||||
// Method sed to get the corresponding live range of a Value
|
||||
//
|
||||
inline LiveRange *getLiveRangeForValue( const Value *Val)
|
||||
{ return LiveRangeMap[Val]; }
|
||||
// Method used to get the live range containing a Value.
|
||||
// This may return NULL if no live range exists for a Value (eg, some consts)
|
||||
inline LiveRange *getLiveRangeForValue(const Value *Val) {
|
||||
return LiveRangeMap[Val];
|
||||
}
|
||||
inline const LiveRange *getLiveRangeForValue(const Value *Val) const {
|
||||
LiveRangeMapType::const_iterator I = LiveRangeMap.find(Val);
|
||||
return I->second;
|
||||
}
|
||||
|
||||
// Method for coalescing live ranges. Called only after interference info
|
||||
// is calculated.
|
||||
|
Loading…
Reference in New Issue
Block a user