diff options
| author | Eric Christopher <echristo@gmail.com> | 2016-03-24 00:34:02 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2016-03-24 00:34:02 +0000 |
| commit | 0945a64767d9c79ee97833b9f9ab15264be74ee1 (patch) | |
| tree | 5ea5cc1bfc24822b88ca28cd1716461897b19bf7 /clang/test/Driver | |
| parent | f828bba5bf88fd1d8a2a4cadc44df7203d1d7e63 (diff) | |
| download | bcm5719-llvm-0945a64767d9c79ee97833b9f9ab15264be74ee1.tar.gz bcm5719-llvm-0945a64767d9c79ee97833b9f9ab15264be74ee1.zip | |
Modules builds are necessarily compile actions, but they don't
necessarily produce object files. Turn off split dwarf if we're not
producing a file that the driver believes is an object file.
llvm-svn: 264227
Diffstat (limited to 'clang/test/Driver')
| -rw-r--r-- | clang/test/Driver/split-debug.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Driver/split-debug.h b/clang/test/Driver/split-debug.h new file mode 100644 index 00000000000..bb05f30b675 --- /dev/null +++ b/clang/test/Driver/split-debug.h @@ -0,0 +1,15 @@ +// Check that we aren't splitting debug output for modules builds that don't produce object files. +// +// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -### %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s +// +// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -emit-module -fmodules-embed-all-files -fno-implicit-modules -fno-implicit-module-maps -### %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s +// +// FIXME: This should fail using clang, except that the type of the output for +// an object output with modules is given as clang::driver::types::TY_PCH +// rather than TY_Object. +// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -fmodule-format=obj -### %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s +// +// CHECK-NO-ACTIONS-NOT: objcopy |

