aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCValue.h
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 /include/llvm/MC/MCValue.h
parent66aa9b1c2ff5ba278dd35d720e0ed38bccca3a8e (diff)
downloadexternal_llvm-8906ff1b9dfde28f1ff00706643ca10843b26e01.tar.gz
external_llvm-8906ff1b9dfde28f1ff00706643ca10843b26e01.tar.bz2
external_llvm-8906ff1b9dfde28f1ff00706643ca10843b26e01.zip
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 'include/llvm/MC/MCValue.h')
-rw-r--r--include/llvm/MC/MCValue.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/MC/MCValue.h b/include/llvm/MC/MCValue.h
index ec323fe1b3..af56eedece 100644
--- a/include/llvm/MC/MCValue.h
+++ b/include/llvm/MC/MCValue.h
@@ -49,9 +49,10 @@ public:
///
/// @result - The value's associated section, or null for external or constant
/// values.
- const MCSection *getAssociatedSection() const {
- return SymA ? SymA->getSection() : 0;
- }
+ //
+ // FIXME: Switch to a tagged section, so this can return the tagged section
+ // value.
+ const MCSection *getAssociatedSection() const;
/// print - Print the value to the stream \arg OS.
void print(raw_ostream &OS) const;