1 // REQUIRES: x86-registered-target 2 // RUN: %clang_cc1 -debug-info-kind=limited -split-dwarf-file foo.dwo -S -emit-llvm -o - %s | FileCheck %s 3 // RUN: %clang_cc1 -debug-info-kind=limited -enable-split-dwarf -split-dwarf-file foo.dwo -S -emit-llvm -o - %s | FileCheck --check-prefix=VANILLA %s 4 // RUN: %clang_cc1 -triple x86_64-unknown-linux -debug-info-kind=limited -enable-split-dwarf -split-dwarf-file %t.dwo -emit-obj -o - %s | llvm-objdump -section-headers - | FileCheck --check-prefix=O %s 5 // RUN: llvm-objdump -section-headers %t.dwo | FileCheck --check-prefix=DWO %s 6 7 int main (void) { 8 return 0; 9 } 10 11 // Testing to ensure that the dwo name gets output into the compile unit. 12 // CHECK: !DICompileUnit({{.*}}, splitDebugFilename: "foo.dwo" 13 14 // Testing to ensure that the dwo name is not output into the compile unit if 15 // it's for vanilla split-dwarf rather than split-dwarf for implicit modules. 16 // VANILLA-NOT: splitDebugFilename 17 18 // O-NOT: .dwo 19 // DWO: .dwo 20