George Rimar | 91829ee | 2018-11-14 09:22:16 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target |
| 2 | |
Aaron Puchert | b207bae | 2019-06-26 21:36:35 +0000 | [diff] [blame] | 3 | // Testing to ensure that setting only -split-dwarf-file allows to place .dwo sections into regular output object. |
George Rimar | 91829ee | 2018-11-14 09:22:16 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ |
Aaron Puchert | b207bae | 2019-06-26 21:36:35 +0000 | [diff] [blame] | 5 | // RUN: -split-dwarf-file %t.o -emit-obj -o %t.o %s -fno-experimental-new-pass-manager |
Leonard Chan | 9f8ce3f | 2019-06-13 17:40:03 +0000 | [diff] [blame] | 6 | // 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 Puchert | b207bae | 2019-06-26 21:36:35 +0000 | [diff] [blame] | 8 | // RUN: -split-dwarf-file %t.o -emit-obj -o %t.o %s -fexperimental-new-pass-manager |
Fangrui Song | 324ace4 | 2019-05-01 09:30:45 +0000 | [diff] [blame] | 9 | // RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s |
George Rimar | 91829ee | 2018-11-14 09:22:16 +0000 | [diff] [blame] | 10 | // MODE-SINGLE: .dwo |
| 11 | |
Aaron Puchert | b207bae | 2019-06-26 21:36:35 +0000 | [diff] [blame] | 12 | // Testing to ensure that setting both -split-dwarf-file and -split-dwarf-output |
| 13 | // does not place .dwo sections into regular output object. |
George Rimar | 91829ee | 2018-11-14 09:22:16 +0000 | [diff] [blame] | 14 | // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ |
Aaron Puchert | b207bae | 2019-06-26 21:36:35 +0000 | [diff] [blame] | 15 | // RUN: -split-dwarf-file %t.dwo -split-dwarf-output %t.dwo -emit-obj -o %t.o %s -fno-experimental-new-pass-manager |
Leonard Chan | 9f8ce3f | 2019-06-13 17:40:03 +0000 | [diff] [blame] | 16 | // 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 Puchert | b207bae | 2019-06-26 21:36:35 +0000 | [diff] [blame] | 18 | // RUN: -split-dwarf-file %t.dwo -split-dwarf-output %t.dwo -emit-obj -o %t.o %s -fexperimental-new-pass-manager |
Fangrui Song | 324ace4 | 2019-05-01 09:30:45 +0000 | [diff] [blame] | 19 | // RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s |
George Rimar | 91829ee | 2018-11-14 09:22:16 +0000 | [diff] [blame] | 20 | // MODE-SPLIT-NOT: .dwo |
| 21 | |
| 22 | int main (void) { |
| 23 | return 0; |
| 24 | } |