diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2023-01-11 11:11:53 +0100 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2023-01-11 11:30:41 +0100 |
commit | 4cf83c47470025cbcd004064aee24825185700e0 (patch) | |
tree | 324a8f8058e3c1a8750fe273f03c986f96a6c93a /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | |
parent | ac1ffd3caca12c254e0b8c847aa8ce8e51b6cfbf (diff) | |
download | llvm-4cf83c47470025cbcd004064aee24825185700e0.zip llvm-4cf83c47470025cbcd004064aee24825185700e0.tar.gz llvm-4cf83c47470025cbcd004064aee24825185700e0.tar.bz2 |
Revert "[DWARFLibrary] Add support to re-construct cu-index"
This reverts commit 73712c8790a93c29e513f5e201f92ac5b2370cf9. It causes
a MemorySanitizer error in LLVM testsuite. See
the discussion on https://reviews.llvm.org/D137882 for details.
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r-- | llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index 27330a5..c151129 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -249,13 +249,6 @@ static cl::opt<bool> cl::desc("Show the sizes of all debug sections, " "expressed in bytes."), cat(DwarfDumpCategory)); -static cl::opt<bool> ManuallyGenerateUnitIndex( - "manaully-generate-unit-index", - cl::desc("if the input is dwp file, parse .debug_info " - "section and use it to populate " - "DW_SECT_INFO contributions in cu-index. " - "For DWARF5 it also populated TU Index."), - cl::init(false), cl::Hidden, cl::cat(DwarfDumpCategory)); static cl::opt<bool> ShowSources("show-sources", cl::desc("Show the sources across all compilation units."), @@ -682,7 +675,6 @@ static bool handleBuffer(StringRef Filename, MemoryBufferRef Buffer, std::unique_ptr<DWARFContext> DICtx = DWARFContext::create( *Obj, DWARFContext::ProcessDebugRelocations::Process, nullptr, "", RecoverableErrorHandler); - DICtx->setParseCUTUIndexManually(ManuallyGenerateUnitIndex); if (!HandleObj(*Obj, *DICtx, Filename, OS)) Result = false; } |