C++: Also add a 'getIndirection' on 'GlobalDef' as well. This will be useful in the next commit.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-11-09 20:25:29 +00:00
parent fd26ae18bf
commit 95bb70f577

View File

@@ -1006,6 +1006,9 @@ class GlobalDef extends TGlobalDef, SsaDefOrUse {
global.hasIndexInBlock(block, index, sv)
}
/** Gets the indirection index of this definition. */
int getIndirection() { result = global.getIndirection() }
/** Gets the indirection index of this definition. */
int getIndirectionIndex() { result = global.getIndirectionIndex() }