Add isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack object.

llvm-svn: 35659
This commit is contained in:
Evan Cheng 2007-04-04 07:38:25 +00:00
parent 2bf2aadd9a
commit 44a28f7d77
1 changed files with 6 additions and 0 deletions

View File

@ -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.
///