Use only 'subset' of flags
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 9 Jul 2008 13:29:44 +0000 (13:29 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 9 Jul 2008 13:29:44 +0000 (13:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53323 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetAsmInfo.cpp

index 3c58244a3fe4030ba9569851923d0f49e92ceb36..237b96de1ad4b77661f119018cfafd960e69eed4 100644 (file)
@@ -216,25 +216,17 @@ TargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV,
       Flags |= SectionFlags::Code;
       break;
      case SectionKind::ThreadData:
-      Flags |= SectionFlags::TLS;
-      // FALLS THROUGH
-     case SectionKind::Data:
-      Flags |= SectionFlags::Writeable;
-      break;
      case SectionKind::ThreadBSS:
       Flags |= SectionFlags::TLS;
       // FALLS THROUGH
+     case SectionKind::Data:
      case SectionKind::BSS:
-      Flags |= SectionFlags::BSS;
+      Flags |= SectionFlags::Writeable;
       break;
      case SectionKind::ROData:
-      // No additional flags here
-      break;
      case SectionKind::RODataMergeStr:
-      Flags |= SectionFlags::Strings;
-      // FALLS THROUGH
      case SectionKind::RODataMergeConst:
-      Flags |= SectionFlags::Mergeable;
+      // No additional flags here
       break;
      default:
       assert(0 && "Unexpected section kind!");