File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,12 @@ static cl::opt<bool> KeepARanges(
326
326
" keep or generate .debug_aranges section if .gdb_index is written" ),
327
327
cl::Hidden, cl::cat(BoltCategory));
328
328
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
+
329
335
static cl::opt<std::string> DwarfOutputPath (
330
336
" dwarf-output-path" ,
331
337
cl::desc (" Path to where .dwo files or dwp file will be written out to." ),
@@ -601,6 +607,11 @@ void DWARFRewriter::updateDebugInfo() {
601
607
StrWriter = std::make_unique<DebugStrWriter>(*BC.DwCtx , false );
602
608
StrOffstsWriter = std::make_unique<DebugStrOffsetsWriter>(BC);
603
609
610
+ if (!opts::DeterministicDebugInfo) {
611
+ opts::DeterministicDebugInfo = true ;
612
+ errs () << " BOLT-WARNING: --deterministic-debuginfo is being deprecated\n " ;
613
+ }
614
+
604
615
// / Stores and serializes information that will be put into the
605
616
// / .debug_addr DWARF section.
606
617
std::unique_ptr<DebugAddrWriter> FinalAddrWriter;
You can’t perform that action at this time.
0 commit comments