Mercurial > hg > CbC > CbC_llvm
diff llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp Mon May 25 11:55:54 2020 +0900 +++ b/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp Tue Jun 08 06:07:14 2021 +0900 @@ -310,8 +310,10 @@ // so break out after printing a warning. auto FirstLE = FI.OptLineTable->first(); if (FirstLE && *FirstLE == LE) { - Log << "warning: duplicate line table detected for DIE:\n"; - Die.dump(Log, 0, DIDumpOptions::getForSingleDIE()); + if (!Gsym.isQuiet()) { + Log << "warning: duplicate line table detected for DIE:\n"; + Die.dump(Log, 0, DIDumpOptions::getForSingleDIE()); + } } else { // Print out (ignore if os == nulls as this is expensive) Log << "error: line table has addresses that do not " @@ -390,11 +392,14 @@ // and the debug info wasn't able to be stripped from the DWARF. If // the LowPC isn't zero or -1, then we should emit an error. if (Range.LowPC != 0) { - // Unexpected invalid address, emit an error - Log << "warning: DIE has an address range whose start address is " - "not in any executable sections (" << - *Gsym.GetValidTextRanges() << ") and will not be processed:\n"; - Die.dump(Log, 0, DIDumpOptions::getForSingleDIE()); + if (!Gsym.isQuiet()) { + // Unexpected invalid address, emit a warning + Log << "warning: DIE has an address range whose start address is " + "not in any executable sections (" + << *Gsym.GetValidTextRanges() + << ") and will not be processed:\n"; + Die.dump(Log, 0, DIDumpOptions::getForSingleDIE()); + } } break; }