2015-07-08 09:00:30 +08:00
|
|
|
@import DependsOnModule;
|
|
|
|
// REQUIRES: x86-registered-target
|
2015-07-17 09:19:54 +08:00
|
|
|
// RUN: rm -rf %t-MachO %t-ELF %t-ELF_SPLIT %t-COFF %t-raw
|
|
|
|
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -fmodules -fmodule-format=obj -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-MachO -F %S/Inputs %s
|
|
|
|
// RUN: %clang_cc1 -triple=x86_64-linux-elf -fmodules -fmodule-format=obj -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-ELF -F %S/Inputs %s
|
|
|
|
// RUN: %clang_cc1 -triple=x86_64-windows-coff -fmodules -fmodule-format=obj -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-COFF -F %S/Inputs %s
|
|
|
|
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -fmodules -fmodule-format=raw -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-raw -F %S/Inputs %s
|
|
|
|
|
2015-07-08 09:00:30 +08:00
|
|
|
|
2019-05-01 17:30:45 +08:00
|
|
|
// RUN: llvm-objdump --section-headers %t-MachO/DependsOnModule.pcm %t-ELF/DependsOnModule.pcm %t-COFF/DependsOnModule.pcm | FileCheck %s
|
[llvm-objdump] Print file format in lowercase to match GNU output.
Summary:
GNU objdump prints the file format in lowercase, e.g. `elf64-x86-64`. llvm-objdump prints `ELF64-x86-64` right now, even though piping that into llvm-objcopy refuses that as a valid arch to use.
As an example of a problem this causes, see: https://github.com/ClangBuiltLinux/linux/issues/779
Reviewers: MaskRay, jhenderson, alexshap
Reviewed By: MaskRay
Subscribers: tpimh, sbc100, grimar, jvesely, nhaehnle, kerbowa, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D74433
2020-02-12 03:55:40 +08:00
|
|
|
// CHECK: file format mach-o 64-bit x86-64
|
2015-07-08 09:00:30 +08:00
|
|
|
// CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA
|
[llvm-objdump] Print file format in lowercase to match GNU output.
Summary:
GNU objdump prints the file format in lowercase, e.g. `elf64-x86-64`. llvm-objdump prints `ELF64-x86-64` right now, even though piping that into llvm-objcopy refuses that as a valid arch to use.
As an example of a problem this causes, see: https://github.com/ClangBuiltLinux/linux/issues/779
Reviewers: MaskRay, jhenderson, alexshap
Reviewed By: MaskRay
Subscribers: tpimh, sbc100, grimar, jvesely, nhaehnle, kerbowa, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D74433
2020-02-12 03:55:40 +08:00
|
|
|
// CHECK: file format elf64-x86-64
|
2015-07-08 09:00:30 +08:00
|
|
|
// CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA
|
[llvm-objdump] Print file format in lowercase to match GNU output.
Summary:
GNU objdump prints the file format in lowercase, e.g. `elf64-x86-64`. llvm-objdump prints `ELF64-x86-64` right now, even though piping that into llvm-objcopy refuses that as a valid arch to use.
As an example of a problem this causes, see: https://github.com/ClangBuiltLinux/linux/issues/779
Reviewers: MaskRay, jhenderson, alexshap
Reviewed By: MaskRay
Subscribers: tpimh, sbc100, grimar, jvesely, nhaehnle, kerbowa, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D74433
2020-02-12 03:55:40 +08:00
|
|
|
// CHECK: file format coff-x86-64
|
2015-07-08 09:00:30 +08:00
|
|
|
// CHECK: clangast {{[0-9a-f]+}} {{[0-9a-f]+}}
|
|
|
|
|
2019-05-01 17:30:45 +08:00
|
|
|
// RUN: not llvm-objdump --section-headers %t-raw/DependsOnModule.pcm
|
2015-07-08 09:00:30 +08:00
|
|
|
|
2019-06-15 22:07:43 +08:00
|
|
|
// RUN: %clang_cc1 -split-dwarf-output t-split.dwo -triple=x86_64-linux-elf -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-ELF_SPLIT -F %S/Inputs %s -o %t-split.o
|