diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-26 22:13:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-26 22:13:22 +0000 |
commit | 959fd883346384e742fff049327a6815e36017e0 (patch) | |
tree | bc547f4126e123f1bc04ed9acf4ae8b095c9776b /include/llvm/MC/MCSymbol.h | |
parent | c33e6964773de5ce4912cfba3c374247d6b804d0 (diff) | |
download | external_llvm-959fd883346384e742fff049327a6815e36017e0.zip external_llvm-959fd883346384e742fff049327a6815e36017e0.tar.gz external_llvm-959fd883346384e742fff049327a6815e36017e0.tar.bz2 |
llvm-mc/Mach-O: Don't put assembler temporary labels in the symbol table.
- I moved section creation back into AsmParser. I think policy decisions like
this should be pushed higher, not lower, when possible (in addition the
assembler has flags which change this behavior, for example).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSymbol.h')
-rw-r--r-- | include/llvm/MC/MCSymbol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h index 37a2755..631fa12 100644 --- a/include/llvm/MC/MCSymbol.h +++ b/include/llvm/MC/MCSymbol.h @@ -63,6 +63,11 @@ namespace llvm { /// @name Symbol Type /// @{ + /// isTemporary - Check if this is an assembler temporary symbol. + bool isTemporary() const { + return IsTemporary; + } + /// isDefined - Check if this symbol is defined (i.e., it has an address). /// /// Defined symbols are either absolute or in some section. |