Learn that __DATA,__objc_classrefs is not atomized via symbols.
[oota-llvm.git] / lib / MC / MCAsmInfoDarwin.cpp
index f7054902f24c2ab6faea5dfeeb7592bc27e5e2f0..a2a2504b4c88705ab3e450c25c64cf3c9fdc396d 100644 (file)
@@ -33,6 +33,10 @@ bool MCAsmInfoDarwin::isSectionAtomizableBySymbols(
   if (SMO.getSegmentName() == "__DATA" && SMO.getSectionName() == "__cfstring")
     return false;
 
+  if (SMO.getSegmentName() == "__DATA" &&
+      SMO.getSectionName() == "__objc_classrefs")
+    return false;
+
   switch (SMO.getType()) {
   default:
     return true;