[RISCV] Add Tag_RISCV_arch attribute by default when using clang as an assembler.
authorCraig Topper <craig.topper@sifive.com>
Fri, 21 Apr 2023 17:54:24 +0000 (10:54 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 21 Apr 2023 17:54:24 +0000 (10:54 -0700)
commitea0dae0961897da69b960caf68063db86312674d
tree56b1ebaae8d4f927ef8816baf3c1b0e62b357290
parentffb42e313d5439827dde884b97e60ef2ddadcc38
[RISCV] Add Tag_RISCV_arch attribute by default when using clang as an assembler.

Can be disabled with -mno-default-build-attributes just like ARM.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D148817
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/riscv-default-build-attributes.s [new file with mode: 0644]