summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-10 22:45:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-10 22:45:09 +0000
commit071f73db4a0c3f7f00ef14d38af17f3c8d69827a (patch)
treecba75e8cfd0f39c70643bc0abbc265516c030ccc /include
parente9e2ba05de573f926f1d054add7ddbf15eab178a (diff)
downloadllvm-071f73db4a0c3f7f00ef14d38af17f3c8d69827a.tar.gz
llvm-071f73db4a0c3f7f00ef14d38af17f3c8d69827a.tar.bz2
llvm-071f73db4a0c3f7f00ef14d38af17f3c8d69827a.tar.xz
MC/Mach-O: Explicitly track atoms, as represented by their defining symbol, for each fragment (not yet used).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAssembler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index c1b60f011f..cc891a8f18 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -32,6 +32,7 @@ class MCObjectWriter;
class MCSection;
class MCSectionData;
class MCSymbol;
+class MCSymbolData;
class MCValue;
class TargetAsmBackend;
@@ -78,6 +79,11 @@ private:
/// Parent - The data for the section this fragment is in.
MCSectionData *Parent;
+ /// Atom - The atom this fragment is in, as represented by it's defining
+ /// symbol. Atom's are only used by backends which set
+ /// \see MCAsmBackend::hasReliableSymbolDifference().
+ MCSymbolData *Atom;
+
/// @name Assembler Backend Data
/// @{
//
@@ -110,6 +116,9 @@ public:
MCSectionData *getParent() const { return Parent; }
void setParent(MCSectionData *Value) { Parent = Value; }
+ MCSymbolData *getAtom() const { return Atom; }
+ void setAtom(MCSymbolData *Value) { Atom = Value; }
+
unsigned getOrdinal() const { return Ordinal; }
void setOrdinal(unsigned Value) { Ordinal = Value; }