Revert r224935 "Refactor duplicated code. No intended functionality change."
[oota-llvm.git] / include / llvm / Target / TargetLoweringObjectFile.h
index 73bf56f018e9451c88888073c0076ccc6c6bb673..7fcb171ab3d3555fbd7a920452d3fb6701bd5d9f 100644 (file)
@@ -151,6 +151,12 @@ public:
     return nullptr;
   }
 
+  /// \brief True if the section is atomized using the symbols in it.
+  /// This is false if the section is not atomized at all (most ELF sections) or
+  /// if it is atomized based on its contents (MachO' __TEXT,__cstring for
+  /// example).
+  virtual bool isSectionAtomizableBySymbols(const MCSection &Section) const;
+
 protected:
   virtual const MCSection *
   SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,