llvm-mc/Mach-O: Unique sections properly, so we don't get duplicate text
[oota-llvm.git] / tools / llvm-mc / llvm-mc.cpp
index 27fb53b9780d7d3c88be2a7546e85018c8fc7ba1..a9c7fe19399d90da688bfb4ecbcbeb23028c665c 100644 (file)
@@ -248,12 +248,6 @@ static int AssembleInput(const char *ProgName) {
     Str.reset(createMachOStreamer(Ctx, *Out));
   }
 
-  // FIXME: Target hook & command line option for initial section.
-  Str.get()->SwitchSection(MCSectionMachO::Create("__TEXT","__text",
-                                       MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS,
-                                                  0, SectionKind::getText(),
-                                                  Ctx));
-
   AsmParser Parser(SrcMgr, Ctx, *Str.get());
   OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(Parser));
   if (!TAP) {