forked from OSchip/llvm-project
Add isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack object.
llvm-svn: 35659
This commit is contained in:
parent
2bf2aadd9a
commit
44a28f7d77
|
@ -263,6 +263,12 @@ public:
|
|||
return -++NumFixedObjects;
|
||||
}
|
||||
|
||||
/// isFixedObjectIndex - Returns true if the specified index corresponds to a
|
||||
/// fixed stack object.
|
||||
bool isFixedObjectIndex(int ObjectIdx) const {
|
||||
return ObjectIdx < 0 && (ObjectIdx >= -(int)NumFixedObjects);
|
||||
}
|
||||
|
||||
/// CreateStackObject - Create a new statically sized stack object, returning
|
||||
/// a postive identifier to represent it.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue