]> granicus.if.org Git - clang/commitdiff
[PowerPC] Reduce names from Power8Vector to P8Vector
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 10 Oct 2014 17:21:23 +0000 (17:21 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 10 Oct 2014 17:21:23 +0000 (17:21 +0000)
Per Hal Finkel's review, improving typability of some variable names.

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

lib/Basic/Targets.cpp

index 902f1c3c610206f7791478b36946a84db41da65d..8a5d85242cc8b15ec81e9cb5e24f0d4f2d86a0dd 100644 (file)
@@ -672,14 +672,14 @@ class PPCTargetInfo : public TargetInfo {
 
   // Target cpu features.
   bool HasVSX;
-  bool HasPower8Vector;
+  bool HasP8Vector;
 
 protected:
   std::string ABI;
 
 public:
   PPCTargetInfo(const llvm::Triple &Triple)
-    : TargetInfo(Triple), HasVSX(false), HasPower8Vector(false) {
+    : TargetInfo(Triple), HasVSX(false), HasP8Vector(false) {
     BigEndian = (Triple.getArch() != llvm::Triple::ppc64le);
     LongDoubleWidth = LongDoubleAlign = 128;
     LongDoubleFormat = &llvm::APFloat::PPCDoubleDouble;
@@ -936,7 +936,7 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
     }
 
     if (Feature == "power8-vector") {
-      HasPower8Vector = true;
+      HasP8Vector = true;
       continue;
     }
 
@@ -1090,7 +1090,7 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
 
   if (HasVSX)
     Builder.defineMacro("__VSX__");
-  if (HasPower8Vector)
+  if (HasP8Vector)
     Builder.defineMacro("__POWER8_VECTOR__");
 
   // FIXME: The following are not yet generated here by Clang, but are