inline IGNode * getUserIGNode() const
{ return UserIGNode; } // NULL if the user is not allocated
- inline Type::PrimitiveID getTypeID() const {
+ inline const Type* getType() const {
const Value *val = *begin();
assert(val && "Can't find type - Live range is empty" );
- return (val->getType())->getPrimitiveID();
+ return val->getType();
+ }
+
+ inline Type::PrimitiveID getTypeID() const {
+ return this->getType()->getPrimitiveID();
}
-
inline void setSuggestedColor(int Col) {
//assert( (SuggestedColor == -1) && "Changing an already suggested color");
void constructLiveRanges();
+ const Method* getMethod() { return Meth; }
+
inline void addLRToMap(const Value *Val, LiveRange *LR) {
assert( Val && LR && "Val/LR is NULL!\n");
assert( (! LiveRangeMap[ Val ]) && "LR already set in map");
inline IGNode * getUserIGNode() const
{ return UserIGNode; } // NULL if the user is not allocated
- inline Type::PrimitiveID getTypeID() const {
+ inline const Type* getType() const {
const Value *val = *begin();
assert(val && "Can't find type - Live range is empty" );
- return (val->getType())->getPrimitiveID();
+ return val->getType();
+ }
+
+ inline Type::PrimitiveID getTypeID() const {
+ return this->getType()->getPrimitiveID();
}
-
inline void setSuggestedColor(int Col) {
//assert( (SuggestedColor == -1) && "Changing an already suggested color");
void constructLiveRanges();
+ const Method* getMethod() { return Meth; }
+
inline void addLRToMap(const Value *Val, LiveRange *LR) {
assert( Val && LR && "Val/LR is NULL!\n");
assert( (! LiveRangeMap[ Val ]) && "LR already set in map");