summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorSean Fertile <sfertile@ca.ibm.com>2019-08-20 23:24:47 +0000
committerSean Fertile <sfertile@ca.ibm.com>2019-08-20 23:24:47 +0000
commit9467734a1c561a79be5b8a7d6cd8e4389d287c59 (patch)
treefc94539ba046f327cb91034a3403a2b89cdee5f8 /llvm/lib/MC
parent26121ae4d047e142594bd400cd5215aafb6d8cbb (diff)
downloadbcm5719-llvm-9467734a1c561a79be5b8a7d6cd8e4389d287c59.tar.gz
bcm5719-llvm-9467734a1c561a79be5b8a7d6cd8e4389d287c59.zip
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. llvm-svn: 369471
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/XCOFFObjectWriter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/XCOFFObjectWriter.cpp b/llvm/lib/MC/XCOFFObjectWriter.cpp
index 79a94b19828..94c95279c06 100644
--- a/llvm/lib/MC/XCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/XCOFFObjectWriter.cpp
@@ -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
OpenPOWER on IntegriCloud