MC: Move MachObjectWriter::SectionAddress to private.
authorJim Grosbach <grosbach@apple.com>
Thu, 4 Jun 2015 23:25:19 +0000 (23:25 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 4 Jun 2015 23:25:19 +0000 (23:25 +0000)
There's already a get() method everything that needs it is using.

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

include/llvm/MC/MCMachObjectWriter.h

index f48ca8a728a796aa558c66fe34bf666a3e8bb2b9..15a4ac6ebe6c78592c3a5553cdff2786e1aaf8d2 100644 (file)
@@ -98,6 +98,8 @@ class MachObjectWriter : public MCObjectWriter {
   llvm::DenseMap<const MCSection *, std::vector<RelAndSymbol>> Relocations;
   llvm::DenseMap<const MCSection *, unsigned> IndirectSymBase;
 
+  SectionAddrMap SectionAddress;
+
   /// @}
   /// \name Symbol Table Data
   /// @{
@@ -130,8 +132,6 @@ public:
 
   bool isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind);
 
-  SectionAddrMap SectionAddress;
-
   SectionAddrMap &getSectionAddressMap() { return SectionAddress; }
 
   uint64_t getSectionAddress(const MCSection *Sec) const {