]> granicus.if.org Git - clang/commitdiff
Clang format a few prior patches (NFC)
authorTeresa Johnson <tejohnson@google.com>
Mon, 2 Nov 2015 18:03:12 +0000 (18:03 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 2 Nov 2015 18:03:12 +0000 (18:03 +0000)
I had clang formatted my earlier patches using the wrong style.
Reformatted with the LLVM style.

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

lib/Driver/Driver.cpp
lib/Driver/Tools.cpp

index 603273fdde2671cde5ede3f180566a120aa781ac..425c9151c4f7ca9bec4f5f9fa4b2e6adceeddc39 100644 (file)
@@ -378,7 +378,8 @@ void Driver::setLTOMode(const llvm::opt::ArgList &Args) {
   StringRef LTOName("full");
 
   const Arg *A = Args.getLastArg(options::OPT_flto_EQ);
-  if (A) LTOName = A->getValue();
+  if (A)
+    LTOName = A->getValue();
 
   LTOMode = llvm::StringSwitch<LTOKind>(LTOName)
                 .Case("full", LTOK_Full)
index e72e4bdcb2262d9f9974415b366361cab3ce23cc..34dfa4f4ecf15d2edeeb2b4ad22de5fb1fe1045a 100644 (file)
@@ -1672,7 +1672,8 @@ static void AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args,
   if (!CPU.empty())
     CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
 
-  if (IsThinLTO) CmdArgs.push_back("-plugin-opt=thinlto");
+  if (IsThinLTO)
+    CmdArgs.push_back("-plugin-opt=thinlto");
 }
 
 /// This is a helper function for validating the optional refinement step