aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCSymbol.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-22 07:22:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-22 07:22:36 +0000
commit8906ff1b9dfde28f1ff00706643ca10843b26e01 (patch)
tree9cd4a02e407a6ac0751c459bb5327f1f6f3cc07e /lib/MC/MCSymbol.cpp
parent66aa9b1c2ff5ba278dd35d720e0ed38bccca3a8e (diff)
downloadexternal_llvm-8906ff1b9dfde28f1ff00706643ca10843b26e01.zip
external_llvm-8906ff1b9dfde28f1ff00706643ca10843b26e01.tar.gz
external_llvm-8906ff1b9dfde28f1ff00706643ca10843b26e01.tar.bz2
llvm-mc: Clean up some handling of symbol/section association to be more correct
(external was really undefined and there wasn't an explicit representation for absolute symbols). - This still needs some cleanup to how the absolute "pseudo" section is dealt with, but I haven't figured out the nicest approach yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCSymbol.cpp')
-rw-r--r--lib/MC/MCSymbol.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp
index d032017..3c9894b 100644
--- a/lib/MC/MCSymbol.cpp
+++ b/lib/MC/MCSymbol.cpp
@@ -12,6 +12,10 @@
using namespace llvm;
+// Sentinel value for the absolute pseudo section.
+const MCSection *MCSymbol::AbsolutePseudoSection =
+ reinterpret_cast<const MCSection *>(1);
+
/// NeedsQuoting - Return true if the string \arg Str needs quoting, i.e., it
/// does not match [a-zA-Z_.][a-zA-Z0-9_.]*.
//