projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
638d853
)
llvm-mc: Add MCSection::isDefined()
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 26 Aug 2009 00:10:55 +0000
(
00:10
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 26 Aug 2009 00:10:55 +0000
(
00:10
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80057
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/MC/MCSymbol.h
patch
|
blob
|
history
diff --git
a/include/llvm/MC/MCSymbol.h
b/include/llvm/MC/MCSymbol.h
index 122e897a92df3aa90168a8e0f49e263705e9b60f..37a2755328f02eafcd8cab9721f729e36c591d06 100644
(file)
--- a/
include/llvm/MC/MCSymbol.h
+++ b/
include/llvm/MC/MCSymbol.h
@@
-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.