mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-15 07:59:50 +00:00
Add isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
710216275b
commit
a96c5b3040
@ -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
Block a user