mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
MC: Use MCSymbol in MachObjectWriter, NFC
Replace uses of `MCSymbolData` with `MCSymbol` where both are needed, so we can remove the backpointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,7 +81,7 @@ class MachObjectWriter : public MCObjectWriter {
|
||||
/// MachSymbolData - Helper struct for containing some precomputed information
|
||||
/// on symbols.
|
||||
struct MachSymbolData {
|
||||
MCSymbolData *SymbolData;
|
||||
const MCSymbol *Symbol;
|
||||
uint64_t StringIndex;
|
||||
uint8_t SectionIndex;
|
||||
|
||||
@@ -152,7 +152,7 @@ public:
|
||||
uint64_t getPaddingSize(const MCSectionData *SD,
|
||||
const MCAsmLayout &Layout) const;
|
||||
|
||||
bool doesSymbolRequireExternRelocation(const MCSymbolData *SD);
|
||||
bool doesSymbolRequireExternRelocation(const MCSymbol &S);
|
||||
|
||||
/// @}
|
||||
|
||||
|
Reference in New Issue
Block a user