aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSymbol.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-29 18:00:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-29 18:00:03 +0000
commit0eab5c4d85b4c4bb161bcdd959aa58a6f54415cc (patch)
tree9fbabf08ded997347b88ad63746aebc103199d5f /include/llvm/MC/MCSymbol.h
parent6db7fe873624dd5e5e21c263614df32577e40c95 (diff)
downloadexternal_llvm-0eab5c4d85b4c4bb161bcdd959aa58a6f54415cc.zip
external_llvm-0eab5c4d85b4c4bb161bcdd959aa58a6f54415cc.tar.gz
external_llvm-0eab5c4d85b4c4bb161bcdd959aa58a6f54415cc.tar.bz2
MCExpr: Add FindAssociatedSection, which attempts to mirror the 'as' semantics
that associate sections with expressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSymbol.h')
-rw-r--r--include/llvm/MC/MCSymbol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h
index 7da4d7c..0583ce5 100644
--- a/include/llvm/MC/MCSymbol.h
+++ b/include/llvm/MC/MCSymbol.h
@@ -56,6 +56,7 @@ namespace llvm {
mutable unsigned IsUsed : 1;
private: // MCContext creates and uniques these.
+ friend class MCExpr;
friend class MCContext;
MCSymbol(StringRef name, bool isTemporary)
: Name(name), Section(0), Value(0),