summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/split-debug-single-file.c
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-06-13 17:40:03 +0000
committerLeonard Chan <leonardchan@google.com>2019-06-13 17:40:03 +0000
commit9f8ce3feb224251a10e7f257ee8ba937bd9eaa24 (patch)
treebd775511fa0ed84aebc7384275a13db3eb659eb7 /clang/test/CodeGen/split-debug-single-file.c
parenta0781b6e3a3a150818aa4c9e39e1d1c608e55fc9 (diff)
downloadbcm5719-llvm-9f8ce3feb224251a10e7f257ee8ba937bd9eaa24.tar.gz
bcm5719-llvm-9f8ce3feb224251a10e7f257ee8ba937bd9eaa24.zip
[clang][NewPM] Fix split debug test
This contains the part of D62225 which fixes CodeGen/split-debug-single-file.c by not placing .dwo sections when using -enable-split-dwarf=split. Differential Revision: https://reviews.llvm.org/D63168 llvm-svn: 363281
Diffstat (limited to 'clang/test/CodeGen/split-debug-single-file.c')
-rw-r--r--clang/test/CodeGen/split-debug-single-file.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/CodeGen/split-debug-single-file.c b/clang/test/CodeGen/split-debug-single-file.c
index 5987dc07ab8..1c775d09411 100644
--- a/clang/test/CodeGen/split-debug-single-file.c
+++ b/clang/test/CodeGen/split-debug-single-file.c
@@ -2,13 +2,19 @@
// Testing to ensure -enable-split-dwarf=single allows to place .dwo sections into regular output object.
// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
-// RUN: -enable-split-dwarf=single -split-dwarf-file %t.o -emit-obj -o %t.o %s
+// RUN: -enable-split-dwarf=single -split-dwarf-file %t.o -emit-obj -o %t.o %s -fno-experimental-new-pass-manager
+// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s
+// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
+// RUN: -enable-split-dwarf=single -split-dwarf-file %t.o -emit-obj -o %t.o %s -fexperimental-new-pass-manager
// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s
// MODE-SINGLE: .dwo
// Testing to ensure -enable-split-dwarf=split does not place .dwo sections into regular output object.
// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
-// RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s
+// RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s -fno-experimental-new-pass-manager
+// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s
+// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \
+// RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s -fexperimental-new-pass-manager
// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s
// MODE-SPLIT-NOT: .dwo
OpenPOWER on IntegriCloud