[llvm] r237868 - MC: Make MCSymbolData::Symbol private
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed May 20 17:49:09 PDT 2015
Author: dexonsmith
Date: Wed May 20 19:49:09 2015
New Revision: 237868
URL: http://llvm.org/viewvc/llvm-project?rev=237868&view=rev
Log:
MC: Make MCSymbolData::Symbol private
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.
Modified:
llvm/trunk/include/llvm/MC/MCSymbol.h
Modified: llvm/trunk/include/llvm/MC/MCSymbol.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSymbol.h?rev=237868&r1=237867&r2=237868&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSymbol.h (original)
+++ llvm/trunk/include/llvm/MC/MCSymbol.h Wed May 20 19:49:09 2015
@@ -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); }
More information about the llvm-commits
mailing list