[llvm-commits] [llvm] r53323 - /llvm/trunk/lib/Target/TargetAsmInfo.cpp

Anton Korobeynikov asl at math.spbu.ru
Wed Jul 9 06:29:44 PDT 2008


Author: asl
Date: Wed Jul  9 08:29:44 2008
New Revision: 53323

URL: http://llvm.org/viewvc/llvm-project?rev=53323&view=rev
Log:
Use only 'subset' of flags

Modified:
    llvm/trunk/lib/Target/TargetAsmInfo.cpp

Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=53323&r1=53322&r2=53323&view=diff

==============================================================================
--- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Wed Jul  9 08:29:44 2008
@@ -216,25 +216,17 @@
       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!");





More information about the llvm-commits mailing list