[PATCH] D152785: [COFF] Support -gsplit-dwarf for COFF on Windows
    Fangrui Song via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jun 16 14:48:26 PDT 2023
    
    
  
MaskRay added inline comments.
================
Comment at: clang/test/Driver/split-debug.c:19
 // RUN: %clang -### -c -target amdgcn-amd-amdhsa -gsplit-dwarf -g %s 2>&1 | FileCheck %s --check-prefix=SPLIT
+// RUN: %clang_cl -### -c -target x86_64-unknown-windows-msvc -gsplit-dwarf -g %s 2>&1 | FileCheck %s --check-prefix=SPLIT
 
----------------
Use `--target=` for new tests. `-target ` has been deprecated since Clang 3.x
================
Comment at: llvm/lib/MC/WinCOFFObjectWriter.cpp:124
 
+bool isDwoSection(const MCSection &Sec) {
+  return Sec.getName().endswith(".dwo");
----------------
static
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152785/new/
https://reviews.llvm.org/D152785
    
    
More information about the llvm-commits
mailing list