diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-12-06 09:22:25 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-12-06 09:22:25 +0000 |
commit | d1dea0abcde59475229a12b798b72ebcf068f472 (patch) | |
tree | 0c14e7b62348ad684db9d3c25f278d97db523723 /gnu | |
parent | bbd808b3b660d02e360cf00d06426a0658c988c2 (diff) |
Like Targets.def include AMDGPU lines in generated .def files for
AsmParsers.def AsmPrinters.def and Disassemblers.def.
Required so that LLVM headers will have prototypes for
LLVMInitializeAMDGPUAsmPrinter() and LLVMInitializeAMDGPUAsmParser().
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/clang/include/llvm/Config/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/usr.bin/clang/include/llvm/Config/Makefile b/gnu/usr.bin/clang/include/llvm/Config/Makefile index a8d29f2b0f0..da2fe2cf59b 100644 --- a/gnu/usr.bin/clang/include/llvm/Config/Makefile +++ b/gnu/usr.bin/clang/include/llvm/Config/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2019/03/06 08:13:54 jsg Exp $ +# $OpenBSD: Makefile,v 1.7 2019/12/06 09:22:24 jsg Exp $ .include <bsd.own.mk> @@ -16,11 +16,14 @@ clean cleandir: rm -f ${DEFS} AsmParsers.def: - printf "LLVM_ASM_PARSER(${LLVM_ARCH})\n#undef LLVM_ASM_PARSER\n" >$@ + printf "LLVM_ASM_PARSER(AMDGPU)\n" >$@ + printf "LLVM_ASM_PARSER(${LLVM_ARCH})\n#undef LLVM_ASM_PARSER\n" >>$@ AsmPrinters.def: - printf "LLVM_ASM_PRINTER(${LLVM_ARCH})\n#undef LLVM_ASM_PRINTER\n" >$@ + printf "LLVM_ASM_PRINTER(AMDGPU)\n" >$@ + printf "LLVM_ASM_PRINTER(${LLVM_ARCH})\n#undef LLVM_ASM_PRINTER\n" >>$@ Disassemblers.def: - printf "LLVM_DISASSEMBLER(${LLVM_ARCH})\n#undef LLVM_DISASSEMBLER\n" >$@ + printf "LLVM_DISASSEMBLER(AMDGPU)\n" >$@ + printf "LLVM_DISASSEMBLER(${LLVM_ARCH})\n#undef LLVM_DISASSEMBLER\n" >>$@ Targets.def: printf "LLVM_TARGET(AMDGPU)\n" >$@ printf "LLVM_TARGET(${LLVM_ARCH})\n#undef LLVM_TARGET\n" >>$@ |