Fix a FIXME, on darwin all virtual sections have a zerofill type.
authorEric Christopher <echristo@gmail.com>
Wed, 7 Aug 2013 21:13:01 +0000 (21:13 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 7 Aug 2013 21:13:01 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187912 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCMachOStreamer.cpp

index e08b01b7aeaac2ed0e10e8a07275f63207e5c82d..0729b7a2f2a54df96d37068af5900f31593d72bd 100644 (file)
@@ -346,7 +346,8 @@ void MCMachOStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
   if (!Symbol)
     return;
 
-  // FIXME: Assert that this section has the zerofill type.
+  // On darwin all virtual sections have zerofill type.
+  assert(Section->isVirtualSection() && "Section does not have zerofill type!");
 
   assert(Symbol->isUndefined() && "Cannot define a symbol twice!");