[llvm] 229e08c - [LoongArch] Remove unnecessary `static` keyword as `const` has internal linkage. NFC
Weining Lu via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 11 19:30:53 PDT 2022
Author: Weining Lu
Date: 2022-06-12T10:05:47+08:00
New Revision: 229e08ce99cd8aa1b4c58143e3a4af471ad6a5f7
URL: https://github.com/llvm/llvm-project/commit/229e08ce99cd8aa1b4c58143e3a4af471ad6a5f7
DIFF: https://github.com/llvm/llvm-project/commit/229e08ce99cd8aa1b4c58143e3a4af471ad6a5f7.diff
LOG: [LoongArch] Remove unnecessary `static` keyword as `const` has internal linkage. NFC
See https://reviews.llvm.org/D127199#inline-1222815
Added:
Modified:
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index 3669b9ed0d4a7..3792cb0857ffa 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -65,7 +65,7 @@ const char *LoongArchTargetLowering::getTargetNodeName(unsigned Opcode) const {
//===----------------------------------------------------------------------===//
// FIXME: Now, we only support CallingConv::C with fixed arguments which are
// passed with integer registers.
-static const MCPhysReg ArgGPRs[] = {
+const MCPhysReg ArgGPRs[] = {
LoongArch::R4, LoongArch::R5, LoongArch::R6, LoongArch::R7,
LoongArch::R8, LoongArch::R9, LoongArch::R10, LoongArch::R11};
More information about the llvm-commits
mailing list