summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-07 21:13:01 +0000
committerEric Christopher <echristo@gmail.com>2013-08-07 21:13:01 +0000
commit42ae4591746ae99bb5b3b90cffa6430971b6b02b (patch)
tree2f748af41a60d287c7462517f044e3ac37aa5b2c
parent36b2a3b0e5c9b363514af2e22e03678ed0287e2e (diff)
downloadbcm5719-llvm-42ae4591746ae99bb5b3b90cffa6430971b6b02b.tar.gz
bcm5719-llvm-42ae4591746ae99bb5b3b90cffa6430971b6b02b.zip
Fix a FIXME, on darwin all virtual sections have a zerofill type.
llvm-svn: 187912
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index e08b01b7aea..0729b7a2f2a 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -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!");
OpenPOWER on IntegriCloud