Add support for the .zero directive.
[oota-llvm.git] / lib / MC / MCSectionMachO.cpp
index 7a519e8daf033083f3e0a537d7c50f1b9376eeb4..ded3b20eaf531973d81ad40ec3eac29d03d946c5 100644 (file)
@@ -36,7 +36,7 @@ static const struct {
   { 0, /*FIXME??*/              "S_DTRACE_DOF" },                 // 0x0F
   { 0, /*FIXME??*/              "S_LAZY_DYLIB_SYMBOL_POINTERS" }, // 0x10
   { "thread_local_regular",     "S_THREAD_LOCAL_REGULAR" },       // 0x11
-  { "thread_bss",               "S_THREAD_LOCAL_ZEROFILL" },      // 0x12
+  { "thread_local_zerofill",    "S_THREAD_LOCAL_ZEROFILL" },      // 0x12
   { "thread_local_variables",   "S_THREAD_LOCAL_VARIABLES" },     // 0x13
   { "thread_local_variable_pointers",
     "S_THREAD_LOCAL_VARIABLE_POINTERS" },                         // 0x14
@@ -73,7 +73,7 @@ ENTRY(0 /*FIXME*/,           S_ATTR_LOC_RELOC)
 
 MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section,
                                unsigned TAA, unsigned reserved2, SectionKind K)
-  : MCSection(K), TypeAndAttributes(TAA), Reserved2(reserved2) {
+  : MCSection(SV_MachO, K), TypeAndAttributes(TAA), Reserved2(reserved2) {
   assert(Segment.size() <= 16 && Section.size() <= 16 &&
          "Segment or section string too long");
   for (unsigned i = 0; i != 16; ++i) {