mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-27 00:15:58 +00:00
Object/COFF: Add COFFSymbolRef::isAbsolute().
COFFSymbolRef has many predicates, like isCommon() or isExternal(), but this predicate was missing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f49135066
commit
30244cec4f
@ -314,6 +314,10 @@ public:
|
||||
return (getType() & 0xF0) >> COFF::SCT_COMPLEX_TYPE_SHIFT;
|
||||
}
|
||||
|
||||
bool isAbsolute() const {
|
||||
return getSectionNumber() == -1;
|
||||
}
|
||||
|
||||
bool isExternal() const {
|
||||
return getStorageClass() == COFF::IMAGE_SYM_CLASS_EXTERNAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user