MC: Make MCSymbolData::Symbol private
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 21 May 2015 00:49:09 +0000 (00:49 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 21 May 2015 00:49:09 +0000 (00:49 +0000)
Make the back-pointer from `MCSymbolData` to `MCSymbol` private,
preparing to remove the back pointer entirely.  I've already updated all
the users, although for now it's still used to indicate whether
`MCSymbol::Data` has been initialized.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237868 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCSymbol.h

index 67b064568259a20dd7ef74334ad2d84179da50e1..0ed3d06acf923d6ab4d12c00c1d6aa0ade7d7357 100644 (file)
@@ -71,8 +71,6 @@ public:
   /// @{
   bool isInitialized() const { return Symbol; }
 
-  const MCSymbol &getSymbol() const { return *Symbol; }
-
   MCFragment *getFragment() const { return Fragment.getPointer(); }
   void setFragment(MCFragment *Value) { Fragment.setPointer(Value); }