Skip to content

Commit 140f766

Browse files
committedMar 20, 2019
[X86] Remove getCPUKindCanonicalName which is unused.
Differential Revision: https://reviews.llvm.org/D59578 llvm-svn: 356580
1 parent e8062d2 commit 140f766

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed
 

‎clang/lib/Basic/Targets/X86.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -1540,18 +1540,6 @@ void X86TargetInfo::getCPUSpecificCPUDispatchFeatures(
15401540
WholeList.split(Features, ',', /*MaxSplit=*/-1, /*KeepEmpty=*/false);
15411541
}
15421542

1543-
std::string X86TargetInfo::getCPUKindCanonicalName(CPUKind Kind) const {
1544-
switch (Kind) {
1545-
case CK_Generic:
1546-
return "";
1547-
#define PROC(ENUM, STRING, IS64BIT) \
1548-
case CK_##ENUM: \
1549-
return STRING;
1550-
#include "clang/Basic/X86Target.def"
1551-
}
1552-
llvm_unreachable("Invalid CPUKind");
1553-
}
1554-
15551543
// We can't use a generic validation scheme for the cpus accepted here
15561544
// versus subtarget cpus accepted in the target attribute because the
15571545
// variables intitialized by the runtime only support the below currently

‎clang/lib/Basic/Targets/X86.h

-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ class LLVM_LIBRARY_VISIBILITY X86TargetInfo : public TargetInfo {
121121

122122
CPUKind getCPUKind(StringRef CPU) const;
123123

124-
std::string getCPUKindCanonicalName(CPUKind Kind) const;
125-
126124
enum FPMathKind { FP_Default, FP_SSE, FP_387 } FPMath = FP_Default;
127125

128126
public:

0 commit comments

Comments
 (0)
Please sign in to comment.