diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-09 11:00:37 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-09 11:00:37 +0000 |
commit | d47f4a9c982d264e46a6a2fe0f357288768bb5b9 (patch) | |
tree | ff3e97866c86b17c4e8b35f17b4df7097b3231a1 /lib/MC/WinCOFFObjectWriter.cpp | |
parent | 9a89b0115f39137ad0d2300120c3b7c9a771a0d5 (diff) | |
download | external_llvm-d47f4a9c982d264e46a6a2fe0f357288768bb5b9.zip external_llvm-d47f4a9c982d264e46a6a2fe0f357288768bb5b9.tar.gz external_llvm-d47f4a9c982d264e46a6a2fe0f357288768bb5b9.tar.bz2 |
MC-COFF: Assert on non-coff sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r-- | lib/MC/WinCOFFObjectWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index 7bb19b2..c6ea31a 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -359,6 +359,8 @@ object_t *WinCOFFObjectWriter::createCOFFEntity(llvm::StringRef Name, /// This function takes a section data object from the assembler /// and creates the associated COFF section staging object. void WinCOFFObjectWriter::DefineSection(MCSectionData const &SectionData) { + assert(SectionData.getSection().getVariant() == MCSection::SV_COFF + && "Got non COFF section in the COFF backend!"); // FIXME: Not sure how to verify this (at least in a debug build). MCSectionCOFF const &Sec = static_cast<MCSectionCOFF const &>(SectionData.getSection()); |