[llvm] r369471 - Fix assert in XCOFFObjectWriter related to program code csects.
Sean Fertile via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 16:24:47 PDT 2019
Author: sfertile
Date: Tue Aug 20 16:24:47 2019
New Revision: 369471
URL: http://llvm.org/viewvc/llvm-project?rev=369471&view=rev
Log:
Fix assert in XCOFFObjectWriter related to program code csects.
Removed code that added program code csects to a collection as part
of addressing review comments, but I failed to update an assert affected
by the change before commiting.
Modified:
llvm/trunk/lib/MC/XCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/XCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/XCOFFObjectWriter.cpp?rev=369471&r1=369470&r2=369471&view=diff
==============================================================================
--- llvm/trunk/lib/MC/XCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/XCOFFObjectWriter.cpp Tue Aug 20 16:24:47 2019
@@ -343,9 +343,7 @@ void XCOFFObjectWriter::writeSectionHead
}
void XCOFFObjectWriter::writeSymbolTable() {
- assert((ProgramCodeCsects.size() == 1 &&
- ProgramCodeCsects.back().Syms.size() == 0) &&
- ".text csects not handled yet.");
+ assert(ProgramCodeCsects.size() == 0 && ".text csects not handled yet.");
// The BSS Section is special in that the csects must contain a single symbol,
// and the contained symbol cannot be represented in the symbol table as a
More information about the llvm-commits
mailing list