Skip to content

Commit 6e750e5

Browse files
committed
[clang] Rename files that MacOS libtool warns about (NFC)
As mentioned in https://discourse.llvm.org/t/rfc-rename-source-files-in-clang-lib-codegen-targetbuiltins/87462/ it appears that MacOS's libtool warns about source filenames that are identically named, even if they exist in separate directories. Sadly, there doesn't appear to be an easy way to disable this warning, so rename these files, as these warnings are annoying for MacOS users. Fixes #133199.
1 parent f443f56 commit 6e750e5

12 files changed

+22
-22
lines changed

clang/lib/CodeGen/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ add_clang_library(clangCodeGen
117117
PatternInit.cpp
118118
SanitizerMetadata.cpp
119119
SwiftCallingConv.cpp
120-
TargetBuiltins/ARM.cpp
121-
TargetBuiltins/AMDGPU.cpp
122-
TargetBuiltins/DirectX.cpp
123-
TargetBuiltins/Hexagon.cpp
124-
TargetBuiltins/NVPTX.cpp
125-
TargetBuiltins/PPC.cpp
126-
TargetBuiltins/RISCV.cpp
127-
TargetBuiltins/SPIR.cpp
128-
TargetBuiltins/SystemZ.cpp
129-
TargetBuiltins/WebAssembly.cpp
130-
TargetBuiltins/X86.cpp
120+
TargetBuiltins/BuiltinARM.cpp
121+
TargetBuiltins/BuiltinAMDGPU.cpp
122+
TargetBuiltins/BuiltinDirectX.cpp
123+
TargetBuiltins/BuiltinHexagon.cpp
124+
TargetBuiltins/BuiltinNVPTX.cpp
125+
TargetBuiltins/BuiltinPPC.cpp
126+
TargetBuiltins/BuiltinRISCV.cpp
127+
TargetBuiltins/BuiltinSPIR.cpp
128+
TargetBuiltins/BuiltinSystemZ.cpp
129+
TargetBuiltins/BuiltinWebAssembly.cpp
130+
TargetBuiltins/BuiltinX86.cpp
131131
TargetInfo.cpp
132132
Targets/AArch64.cpp
133133
Targets/AMDGPU.cpp

clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinAMDGPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===------- AMDCPU.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===------- BuiltinAMDGPU.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/ARM.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinARM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---------- ARM.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===---------- BuiltinARM.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/DirectX.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinDirectX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--------- DirectX.cpp - Emit LLVM Code for builtins ------------------===//
1+
//===--------- BuiltinDirectX.cpp - Emit LLVM Code for builtins -----------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/Hexagon.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinHexagon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===------ Hexagon.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===------ BuiltinHexagon.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/NVPTX.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinNVPTX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-------- NVPTX.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===-------- BuiltinNVPTX.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/PPC.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinPPC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---------- PPC.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===---------- BuiltinPPC.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/RISCV.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinRISCV.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-------- RISCV.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===-------- BuiltinRISCV.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/SPIR.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinSPIR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--------- SPIR.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===--------- BuiltinSPIR.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/CodeGen/TargetBuiltins/SystemZ.cpp renamed to clang/lib/CodeGen/TargetBuiltins/BuiltinSystemZ.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===------ SystemZ.cpp - Emit LLVM Code for builtins ---------------------===//
1+
//===------ BuiltinSystemZ.cpp - Emit LLVM Code for builtins --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)