[all-commits] [llvm/llvm-project] 14850a: Log to the right stream in DwarfTransformer::handl...

Greg Clayton via All-commits all-commits at lists.llvm.org
Wed Sep 8 14:00:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14850a062845bef842ee54417b8a0771dbc732a4
      https://github.com/llvm/llvm-project/commit/14850a062845bef842ee54417b8a0771dbc732a4
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp

  Log Message:
  -----------
  Log to the right stream in DwarfTransformer::handleDie().

Since we might end up using multiple threads when logging information in the DWARFTransformer, the handleDie() method must use the supplied stream named "OS" when logging warnings and errors. When we use multiple threads, we log to a thread specific stream buffer and then use a mutex to ensure our output doesn't overlap when we emit warnings and errors after a thread is done.

Differential Revision: https://reviews.llvm.org/D109401




More information about the All-commits mailing list