[clang] ccd89be - [Driver] Remove legacy cc1 alias -mlink-cuda-bitcode
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 15 14:02:22 PDT 2022
Author: Fangrui Song
Date: 2022-10-15T14:02:13-07:00
New Revision: ccd89be64567697d6d09a3a74e08eab81080d567
URL: https://github.com/llvm/llvm-project/commit/ccd89be64567697d6d09a3a74e08eab81080d567
DIFF: https://github.com/llvm/llvm-project/commit/ccd89be64567697d6d09a3a74e08eab81080d567.diff
LOG: [Driver] Remove legacy cc1 alias -mlink-cuda-bitcode
r340193 added -mlink-builtin-bitcode as the canonical spelling.
Added:
Modified:
clang/include/clang/Driver/Options.td
clang/test/CodeGenCUDA/link-device-bitcode.cu
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index ef8d6f59d0985..a4c6f205ed611 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -5455,8 +5455,6 @@ def mlink_bitcode_file : Separate<["-"], "mlink-bitcode-file">,
def mlink_builtin_bitcode : Separate<["-"], "mlink-builtin-bitcode">,
HelpText<"Link and internalize needed symbols from the given bitcode file "
"before performing optimizations.">;
-def mlink_cuda_bitcode : Separate<["-"], "mlink-cuda-bitcode">,
- Alias<mlink_builtin_bitcode>;
def vectorize_loops : Flag<["-"], "vectorize-loops">,
HelpText<"Run the Loop vectorization passes">,
MarshallingInfoFlag<CodeGenOpts<"VectorizeLoop">>;
diff --git a/clang/test/CodeGenCUDA/link-device-bitcode.cu b/clang/test/CodeGenCUDA/link-device-bitcode.cu
index 0c6993da1038e..e650d6f62c25d 100644
--- a/clang/test/CodeGenCUDA/link-device-bitcode.cu
+++ b/clang/test/CodeGenCUDA/link-device-bitcode.cu
@@ -15,12 +15,6 @@
// RUN: -disable-llvm-passes -o - %s \
// RUN: | FileCheck %s -check-prefix CHECK-IR
-// Make sure legacy flag name works
-// RUN: %clang_cc1 -triple nvptx-unknown-cuda -fcuda-is-device \
-// RUN: -mlink-cuda-bitcode %t.bc -emit-llvm \
-// RUN: -disable-llvm-passes -o - %s \
-// RUN: | FileCheck %s -check-prefix CHECK-IR
-//
// Make sure we can link two bitcode files.
// RUN: %clang_cc1 -triple nvptx-unknown-cuda -fcuda-is-device \
// RUN: -mlink-builtin-bitcode %t.bc -mlink-builtin-bitcode %t-2.bc \
More information about the cfe-commits
mailing list