[llvm] r187912 - Fix a FIXME, on darwin all virtual sections have a zerofill type.

Eric Christopher echristo at gmail.com
Wed Aug 7 14:13:01 PDT 2013


Author: echristo
Date: Wed Aug  7 16:13:01 2013
New Revision: 187912

URL: http://llvm.org/viewvc/llvm-project?rev=187912&view=rev
Log:
Fix a FIXME, on darwin all virtual sections have a zerofill type.

Modified:
    llvm/trunk/lib/MC/MCMachOStreamer.cpp

Modified: llvm/trunk/lib/MC/MCMachOStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCMachOStreamer.cpp?rev=187912&r1=187911&r2=187912&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Wed Aug  7 16:13:01 2013
@@ -346,7 +346,8 @@ void MCMachOStreamer::EmitZerofill(const
   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!");
 





More information about the llvm-commits mailing list