[PATCH] D90396: [VE] Change to use integrated assembly by defualt
Kazushi Marukawa via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 07:27:56 PDT 2020
kaz7 created this revision.
kaz7 added reviewers: simoll, k-ishizaka.
kaz7 added projects: LLVM, VE.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
kaz7 requested review of this revision.
We've implemented integrated assembler. Now, we change to use
integrated assembler by default. Update a regression test also.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90396
Files:
clang/lib/Driver/ToolChains/VEToolchain.h
clang/test/Driver/ve-toolchain.c
Index: clang/test/Driver/ve-toolchain.c
===================================================================
--- clang/test/Driver/ve-toolchain.c
+++ clang/test/Driver/ve-toolchain.c
@@ -71,12 +71,12 @@
/// Passing -fintegrated-as
// RUN: %clang -### -target ve -x assembler %s 2>&1 | \
-// RUN: FileCheck -check-prefix=NAS_LINK %s
-// RUN: %clang -### -target ve -fintegrated-as -x assembler %s 2>&1 | \
// RUN: FileCheck -check-prefix=AS_LINK %s
-
-// NAS_LINK: nas{{.*}}
-// NAS_LINK: nld{{.*}}
+// RUN: %clang -### -target ve -fno-integrated-as -x assembler %s 2>&1 | \
+// RUN: FileCheck -check-prefix=NAS_LINK %s
// AS_LINK: clang{{.*}} "-cc1as"
// AS_LINK: nld{{.*}}
+
+// NAS_LINK: nas{{.*}}
+// NAS_LINK: nld{{.*}}
Index: clang/lib/Driver/ToolChains/VEToolchain.h
===================================================================
--- clang/lib/Driver/ToolChains/VEToolchain.h
+++ clang/lib/Driver/ToolChains/VEToolchain.h
@@ -26,6 +26,7 @@
Tool *buildLinker() const override;
public:
+ bool IsIntegratedAssemblerDefault() const override { return true; }
bool isPICDefault() const override;
bool isPIEDefault() const override;
bool isPICDefaultForced() const override;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90396.301612.patch
Type: text/x-patch
Size: 1212 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201029/52bfe04c/attachment-0001.bin>
More information about the cfe-commits
mailing list