diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-06-07 14:46:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 14:46:37 -0700 |
commit | 7520d0c9ae4564654ebf843d0295492246948242 (patch) | |
tree | 5b745c40d66a8c213e14d2655ec82f4b7c6b166c /bolt | |
parent | 06188d9af7d7cf8d95d4a7e80bf614cb7781355e (diff) | |
download | llvm-7520d0c9ae4564654ebf843d0295492246948242.zip llvm-7520d0c9ae4564654ebf843d0295492246948242.tar.gz llvm-7520d0c9ae4564654ebf843d0295492246948242.tar.bz2 |
[BOLT][NFC] Unset UseAssemblerInfoForParsing for emission (#94778)
Summary:
Use workaround for quadratic behavior inside
AttemptToFoldSymbolOffsetDifference called from BinaryEmitter::emitLSDA.
https://github.com/llvm/llvm-project/commit/b06e736982a3568fe2bcea8688550f9e393b7450#commitcomment-142836456
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/lib/Core/BinaryEmitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bolt/lib/Core/BinaryEmitter.cpp b/bolt/lib/Core/BinaryEmitter.cpp index 0b44acb..5793963 100644 --- a/bolt/lib/Core/BinaryEmitter.cpp +++ b/bolt/lib/Core/BinaryEmitter.cpp @@ -194,6 +194,7 @@ private: void BinaryEmitter::emitAll(StringRef OrgSecPrefix) { Streamer.initSections(false, *BC.STI); + Streamer.setUseAssemblerInfoForParsing(false); if (opts::UpdateDebugSections && BC.isELF()) { // Force the emission of debug line info into allocatable section to ensure @@ -226,6 +227,7 @@ void BinaryEmitter::emitAll(StringRef OrgSecPrefix) { // TODO Enable for Mach-O once BinaryContext::getDataSection supports it. if (BC.isELF()) AddressMap::emit(Streamer, BC); + Streamer.setUseAssemblerInfoForParsing(true); } void BinaryEmitter::emitFunctions() { |