Skip to content

Commit 7520d0c

Browse files
authored
[BOLT][NFC] Unset UseAssemblerInfoForParsing for emission (#94778)
Summary: Use workaround for quadratic behavior inside AttemptToFoldSymbolOffsetDifference called from BinaryEmitter::emitLSDA. b06e736#commitcomment-142836456
1 parent 06188d9 commit 7520d0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bolt/lib/Core/BinaryEmitter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ class BinaryEmitter {
194194

195195
void BinaryEmitter::emitAll(StringRef OrgSecPrefix) {
196196
Streamer.initSections(false, *BC.STI);
197+
Streamer.setUseAssemblerInfoForParsing(false);
197198

198199
if (opts::UpdateDebugSections && BC.isELF()) {
199200
// Force the emission of debug line info into allocatable section to ensure
@@ -226,6 +227,7 @@ void BinaryEmitter::emitAll(StringRef OrgSecPrefix) {
226227
// TODO Enable for Mach-O once BinaryContext::getDataSection supports it.
227228
if (BC.isELF())
228229
AddressMap::emit(Streamer, BC);
230+
Streamer.setUseAssemblerInfoForParsing(true);
229231
}
230232

231233
void BinaryEmitter::emitFunctions() {

0 commit comments

Comments
 (0)