projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf027a0
)
Fix a FIXME, on darwin all virtual sections have a zerofill type.
author
Eric Christopher
<echristo@gmail.com>
Wed, 7 Aug 2013 21:13:01 +0000
(21:13 +0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/lib/MC/MCMachOStreamer.cpp
b/lib/MC/MCMachOStreamer.cpp
index e08b01b7aeaac2ed0e10e8a07275f63207e5c82d..0729b7a2f2a54df96d37068af5900f31593d72bd 100644
(file)
--- a/
lib/MC/MCMachOStreamer.cpp
+++ b/
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!");