[clang] 14b42f2 - [Clang] Move AMDGPU IAS enabling to Generic_GCC::IsIntegratedAssemblerDefault, NFC
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 28 14:58:46 PST 2022
Author: Brad Smith
Date: 2022-12-28T17:57:14-05:00
New Revision: 14b42f21a25ccc3c5ce8c1fd2bdf44b018088a42
URL: https://github.com/llvm/llvm-project/commit/14b42f21a25ccc3c5ce8c1fd2bdf44b018088a42
DIFF: https://github.com/llvm/llvm-project/commit/14b42f21a25ccc3c5ce8c1fd2bdf44b018088a42.diff
LOG: [Clang] Move AMDGPU IAS enabling to Generic_GCC::IsIntegratedAssemblerDefault, NFC
Reviewed By: scott.linder
Differential Revision: https://reviews.llvm.org/D140657
Added:
Modified:
clang/lib/Driver/ToolChains/AMDGPU.h
clang/lib/Driver/ToolChains/Gnu.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/AMDGPU.h b/clang/lib/Driver/ToolChains/AMDGPU.h
index 3f5461a1c5696..153dc75092c7e 100644
--- a/clang/lib/Driver/ToolChains/AMDGPU.h
+++ b/clang/lib/Driver/ToolChains/AMDGPU.h
@@ -61,10 +61,8 @@ class LLVM_LIBRARY_VISIBILITY AMDGPUToolChain : public Generic_ELF {
AMDGPUToolChain(const Driver &D, const llvm::Triple &Triple,
const llvm::opt::ArgList &Args);
unsigned GetDefaultDwarfVersion() const override { return 5; }
- bool IsIntegratedAssemblerDefault() const override { return true; }
- bool IsMathErrnoDefault() const override { return false; }
- bool useIntegratedAs() const override { return true; }
+ bool IsMathErrnoDefault() const override { return false; }
bool isCrossCompiling() const override { return true; }
bool isPICDefault() const override { return false; }
bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index d03b4f47a61f5..e64bf70a06e8d 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2892,6 +2892,7 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
switch (getTriple().getArch()) {
case llvm::Triple::aarch64:
case llvm::Triple::aarch64_be:
+ case llvm::Triple::amdgcn:
case llvm::Triple::arm:
case llvm::Triple::armeb:
case llvm::Triple::avr:
@@ -2912,6 +2913,7 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::ppcle:
case llvm::Triple::ppc64:
case llvm::Triple::ppc64le:
+ case llvm::Triple::r600:
case llvm::Triple::riscv32:
case llvm::Triple::riscv64:
case llvm::Triple::sparc:
More information about the cfe-commits
mailing list