mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
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:
@@ -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; }
|
||||
|
||||
|
Reference in New Issue
Block a user