r276931 - Basic/Targets.cpp: Reformat aarch64 CPU list.
Matthias Braun via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 27 15:47:09 PDT 2016
Author: matze
Date: Wed Jul 27 17:47:09 2016
New Revision: 276931
URL: http://llvm.org/viewvc/llvm-project?rev=276931&view=rev
Log:
Basic/Targets.cpp: Reformat aarch64 CPU list.
Having 1 entry per line and an alphabetical order is clearer and reduces
the risk of invalid merges.
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=276931&r1=276930&r2=276931&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Jul 27 17:47:09 2016
@@ -5727,14 +5727,17 @@ public:
bool setCPU(const std::string &Name) override {
bool CPUKnown = llvm::StringSwitch<bool>(Name)
- .Case("generic", true)
- .Cases("cortex-a53", "cortex-a57", "cortex-a72",
- "cortex-a35", "exynos-m1", true)
- .Case("cortex-a73", true)
- .Case("cyclone", true)
- .Case("kryo", true)
- .Case("vulcan", true)
- .Default(false);
+ .Case("cortex-a35", true)
+ .Case("cortex-a53", true)
+ .Case("cortex-a57", true)
+ .Case("cortex-a72", true)
+ .Case("cortex-a73", true)
+ .Case("cyclone", true)
+ .Case("exynos-m1", true)
+ .Case("generic", true)
+ .Case("kryo", true)
+ .Case("vulcan", true)
+ .Default(false);
return CPUKnown;
}
More information about the cfe-commits
mailing list