[llvm] 1722109 - [ARM] Remove getHWDivName (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 23 07:44:38 PDT 2021
Author: Kazu Hirata
Date: 2021-07-23T07:44:23-07:00
New Revision: 1722109208d57dfb05d0b9fa7ee536107f8da959
URL: https://github.com/llvm/llvm-project/commit/1722109208d57dfb05d0b9fa7ee536107f8da959
DIFF: https://github.com/llvm/llvm-project/commit/1722109208d57dfb05d0b9fa7ee536107f8da959.diff
LOG: [ARM] Remove getHWDivName (NFC)
This function seems to be unused for at least 5 years.
Added:
Modified:
llvm/include/llvm/Support/ARMTargetParser.h
llvm/lib/Support/ARMTargetParser.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/ARMTargetParser.h b/llvm/include/llvm/Support/ARMTargetParser.h
index 7dd2abd292128..b1ffcfb34552a 100644
--- a/llvm/include/llvm/Support/ARMTargetParser.h
+++ b/llvm/include/llvm/Support/ARMTargetParser.h
@@ -252,7 +252,6 @@ StringRef getArchExtFeature(StringRef ArchExt);
bool appendArchExtFeatures(StringRef CPU, ARM::ArchKind AK, StringRef ArchExt,
std::vector<StringRef> &Features,
unsigned &ArgFPUKind);
-StringRef getHWDivName(uint64_t HWDivKind);
// Information by Name
unsigned getDefaultFPU(StringRef CPU, ArchKind AK);
diff --git a/llvm/lib/Support/ARMTargetParser.cpp b/llvm/lib/Support/ARMTargetParser.cpp
index ad4032e6e2f7e..94b48df27993b 100644
--- a/llvm/lib/Support/ARMTargetParser.cpp
+++ b/llvm/lib/Support/ARMTargetParser.cpp
@@ -540,14 +540,6 @@ bool ARM::appendArchExtFeatures(StringRef CPU, ARM::ArchKind AK,
return StartingNumFeatures != Features.size();
}
-StringRef ARM::getHWDivName(uint64_t HWDivKind) {
- for (const auto &D : HWDivNames) {
- if (HWDivKind == D.ID)
- return D.getName();
- }
- return StringRef();
-}
-
StringRef ARM::getDefaultCPU(StringRef Arch) {
ArchKind AK = parseArch(Arch);
if (AK == ArchKind::INVALID)
More information about the llvm-commits
mailing list