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:
Daniel Dunbar 2009-08-26 00:10:55 +00:00
parent 638d853ef0
commit e1f62b247c

View File

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