mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
llvm-mc: Add MCSection::isDefined()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
638d853ef0
commit
e1f62b247c
@ -63,9 +63,16 @@ namespace llvm {
|
||||
/// @name Symbol Type
|
||||
/// @{
|
||||
|
||||
/// isDefined - Check if this symbol is defined (i.e., it has an address).
|
||||
///
|
||||
/// Defined symbols are either absolute or in some section.
|
||||
bool isDefined() const {
|
||||
return Section != 0;
|
||||
}
|
||||
|
||||
/// isUndefined - Check if this symbol undefined (i.e., implicitly defined).
|
||||
bool isUndefined() const {
|
||||
return Section == 0;
|
||||
return !isDefined();
|
||||
}
|
||||
|
||||
/// isAbsolute - Check if this this is an absolute symbol.
|
||||
|
Loading…
x
Reference in New Issue
Block a user