]> granicus.if.org Git - llvm/commitdiff
Fix assert in XCOFFObjectWriter related to program code csects.
authorSean Fertile <sfertile@ca.ibm.com>
Tue, 20 Aug 2019 23:24:47 +0000 (23:24 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Tue, 20 Aug 2019 23:24:47 +0000 (23:24 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369471 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/XCOFFObjectWriter.cpp

index 79a94b19828df613357ad6226233ff70f636131a..94c95279c06e79e403de6abd71f28fdbf24eec4f 100644 (file)
@@ -343,9 +343,7 @@ void XCOFFObjectWriter::writeSectionHeaderTable() {
 }
 
 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