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
This commit is contained in:
Daniel Dunbar
2010-05-10 22:45:09 +00:00
parent e9e2ba05de
commit 071f73db4a
3 changed files with 46 additions and 13 deletions

View File

@@ -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; }