Skip to content

Commit ee47e84

Browse files
committed
Update code to be in new PR
1 parent bed437d commit ee47e84

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ static cl::opt<bool> KeepARanges(
326326
"keep or generate .debug_aranges section if .gdb_index is written"),
327327
cl::Hidden, cl::cat(BoltCategory));
328328

329+
static cl::opt<bool> DeterministicDebugInfo(
330+
"deterministic-debuginfo",
331+
cl::desc("disables parallel execution of tasks that may produce "
332+
"nondeterministic debug info"),
333+
cl::init(true), cl::cat(BoltCategory));
334+
329335
static cl::opt<std::string> DwarfOutputPath(
330336
"dwarf-output-path",
331337
cl::desc("Path to where .dwo files or dwp file will be written out to."),
@@ -601,6 +607,11 @@ void DWARFRewriter::updateDebugInfo() {
601607
StrWriter = std::make_unique<DebugStrWriter>(*BC.DwCtx, false);
602608
StrOffstsWriter = std::make_unique<DebugStrOffsetsWriter>(BC);
603609

610+
if (!opts::DeterministicDebugInfo) {
611+
opts::DeterministicDebugInfo = true;
612+
errs() << "BOLT-WARNING: --deterministic-debuginfo is being deprecated\n";
613+
}
614+
604615
/// Stores and serializes information that will be put into the
605616
/// .debug_addr DWARF section.
606617
std::unique_ptr<DebugAddrWriter> FinalAddrWriter;

0 commit comments

Comments
 (0)