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:
Duncan P. N. Exon Smith
2015-05-20 15:16:14 +00:00
parent f5bdf04f09
commit c8d166a437
5 changed files with 54 additions and 61 deletions

View File

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