blob: 384e62cb50a598ba80ebd50dc2cd122982c9bf5a [file] [log] [blame]
George Rimar91829ee2018-11-14 09:22:16 +00001// REQUIRES: x86-registered-target
2
Aaron Puchertb207bae2019-06-26 21:36:35 +00003// Testing to ensure that setting only -split-dwarf-file allows to place .dwo sections into regular output object.
George Rimar91829ee2018-11-14 09:22:16 +00004// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
Aaron Puchertb207bae2019-06-26 21:36:35 +00005// RUN: -split-dwarf-file %t.o -emit-obj -o %t.o %s -fno-experimental-new-pass-manager
Leonard Chan9f8ce3f2019-06-13 17:40:03 +00006// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s
7// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
Aaron Puchertb207bae2019-06-26 21:36:35 +00008// RUN: -split-dwarf-file %t.o -emit-obj -o %t.o %s -fexperimental-new-pass-manager
Fangrui Song324ace42019-05-01 09:30:45 +00009// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s
George Rimar91829ee2018-11-14 09:22:16 +000010// MODE-SINGLE: .dwo
11
Aaron Puchertb207bae2019-06-26 21:36:35 +000012// Testing to ensure that setting both -split-dwarf-file and -split-dwarf-output
13// does not place .dwo sections into regular output object.
George Rimar91829ee2018-11-14 09:22:16 +000014// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
Aaron Puchertb207bae2019-06-26 21:36:35 +000015// RUN: -split-dwarf-file %t.dwo -split-dwarf-output %t.dwo -emit-obj -o %t.o %s -fno-experimental-new-pass-manager
Leonard Chan9f8ce3f2019-06-13 17:40:03 +000016// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s
17// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
Aaron Puchertb207bae2019-06-26 21:36:35 +000018// RUN: -split-dwarf-file %t.dwo -split-dwarf-output %t.dwo -emit-obj -o %t.o %s -fexperimental-new-pass-manager
Fangrui Song324ace42019-05-01 09:30:45 +000019// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s
George Rimar91829ee2018-11-14 09:22:16 +000020// MODE-SPLIT-NOT: .dwo
21
22int main (void) {
23 return 0;
24}