diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-08-07 21:13:01 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-08-07 21:13:01 +0000 |
| commit | 189f7983fb300357712689733f65dde9e3658a14 (patch) | |
| tree | ea8e08714239016819ee1166b077f59254872eac /lib | |
| parent | cf027a0d58f507e70187e167f45d9d7eac206ff0 (diff) | |
| download | external_llvm-189f7983fb300357712689733f65dde9e3658a14.zip external_llvm-189f7983fb300357712689733f65dde9e3658a14.tar.gz external_llvm-189f7983fb300357712689733f65dde9e3658a14.tar.bz2 | |
Fix a FIXME, on darwin all virtual sections have a zerofill type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/MC/MCMachOStreamer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index e08b01b..0729b7a 100644 --- 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!"); |
