r232997 - Fix and update comments and a small reformatting.

Eric Christopher echristo at gmail.com
Mon Mar 23 12:26:05 PDT 2015


Author: echristo
Date: Mon Mar 23 14:26:05 2015
New Revision: 232997

URL: http://llvm.org/viewvc/llvm-project?rev=232997&view=rev
Log:
Fix and update comments and a small reformatting.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=232997&r1=232996&r2=232997&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Mar 23 14:26:05 2015
@@ -1563,8 +1563,7 @@ static void AddGoldPlugin(const ToolChai
     CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
 }
 
-static void getX86TargetFeatures(const Driver & D,
-                                 const llvm::Triple &Triple,
+static void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
                                  const ArgList &Args,
                                  std::vector<const char *> &Features) {
   if (Triple.getArchName() == "x86_64h") {
@@ -1578,7 +1577,7 @@ static void getX86TargetFeatures(const D
     Features.push_back("-fsgsbase");
   }
 
-  // Add features to comply with gcc on Android
+  // Add features to be compatible with gcc for Android.
   if (Triple.getEnvironment() == llvm::Triple::Android) {
     if (Triple.getArch() == llvm::Triple::x86_64) {
       Features.push_back("+sse4.2");
@@ -1587,7 +1586,7 @@ static void getX86TargetFeatures(const D
       Features.push_back("+ssse3");
   }
 
-  // Set features according to the -arch flag on MSVC
+  // Set features according to the -arch flag on MSVC.
   if (Arg *A = Args.getLastArg(options::OPT__SLASH_arch)) {
     StringRef Arch = A->getValue();
     bool ArchUsed = false;





More information about the cfe-commits mailing list