r246127 - const-ify X86TargetInfo::getCPUKind.

Eric Christopher via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 17:05:50 PDT 2015


Author: echristo
Date: Wed Aug 26 19:05:50 2015
New Revision: 246127

URL: http://llvm.org/viewvc/llvm-project?rev=246127&view=rev
Log:
const-ify X86TargetInfo::getCPUKind.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=246127&r1=246126&r2=246127&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Aug 26 19:05:50 2015
@@ -2230,7 +2230,7 @@ class X86TargetInfo : public TargetInfo
     //@}
   } CPU;
 
-  CPUKind getCPUKind(StringRef CPU) {
+  CPUKind getCPUKind(StringRef CPU) const {
     return llvm::StringSwitch<CPUKind>(CPU)
         .Case("i386", CK_i386)
         .Case("i486", CK_i486)




More information about the cfe-commits mailing list