]> granicus.if.org Git - clang/commitdiff
[X86] Remove getCPUKindCanonicalName which is unused.
authorCraig Topper <craig.topper@intel.com>
Wed, 20 Mar 2019 17:26:51 +0000 (17:26 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 20 Mar 2019 17:26:51 +0000 (17:26 +0000)
Differential Revision: https://reviews.llvm.org/D59578

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356580 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets/X86.cpp
lib/Basic/Targets/X86.h

index 52f809ccdd73bd19e62f4f3bdbc6b772c8f1376a..87a954fcfd384abb71d6b1edd5d9f7fa08291073 100644 (file)
@@ -1540,18 +1540,6 @@ void X86TargetInfo::getCPUSpecificCPUDispatchFeatures(
   WholeList.split(Features, ',', /*MaxSplit=*/-1, /*KeepEmpty=*/false);
 }
 
-std::string X86TargetInfo::getCPUKindCanonicalName(CPUKind Kind) const {
-  switch (Kind) {
-  case CK_Generic:
-    return "";
-#define PROC(ENUM, STRING, IS64BIT)                                            \
-  case CK_##ENUM:                                                              \
-    return STRING;
-#include "clang/Basic/X86Target.def"
-  }
-  llvm_unreachable("Invalid CPUKind");
-}
-
 // We can't use a generic validation scheme for the cpus accepted here
 // versus subtarget cpus accepted in the target attribute because the
 // variables intitialized by the runtime only support the below currently
index b69a050d237eee60161bc2f8f50ff2af1b6f09bf..313bf28aa1fe0561794505d0774ed77c5b96f936 100644 (file)
@@ -121,8 +121,6 @@ protected:
 
   CPUKind getCPUKind(StringRef CPU) const;
 
-  std::string getCPUKindCanonicalName(CPUKind Kind) const;
-
   enum FPMathKind { FP_Default, FP_SSE, FP_387 } FPMath = FP_Default;
 
 public: