[llvm] r287840 - [lib/LTO] Rename few instances of Lto to LTO.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 16:23:10 PST 2016


Author: davide
Date: Wed Nov 23 18:23:09 2016
New Revision: 287840

URL: http://llvm.org/viewvc/llvm-project?rev=287840&view=rev
Log:
[lib/LTO] Rename few instances of Lto to LTO.

Modified:
    llvm/trunk/lib/LTO/LTOBackend.cpp

Modified: llvm/trunk/lib/LTO/LTOBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOBackend.cpp?rev=287840&r1=287839&r2=287840&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOBackend.cpp (original)
+++ llvm/trunk/lib/LTO/LTOBackend.cpp Wed Nov 23 18:23:09 2016
@@ -168,7 +168,7 @@ static void runNewPMCustomPasses(Module
 }
 
 static void runOldPMPasses(Config &Conf, Module &Mod, TargetMachine *TM,
-                           bool IsThinLto) {
+                           bool IsThinLTO) {
   legacy::PassManager passes;
   passes.add(createTargetTransformInfoWrapperPass(TM->getTargetIRAnalysis()));
 
@@ -182,7 +182,7 @@ static void runOldPMPasses(Config &Conf,
   PMB.LoopVectorize = true;
   PMB.SLPVectorize = true;
   PMB.OptLevel = Conf.OptLevel;
-  if (IsThinLto)
+  if (IsThinLTO)
     PMB.populateThinLTOPassManager(passes);
   else
     PMB.populateLTOPassManager(passes);
@@ -190,10 +190,10 @@ static void runOldPMPasses(Config &Conf,
 }
 
 bool opt(Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod,
-         bool IsThinLto) {
+         bool IsThinLTO) {
   Mod.setDataLayout(TM->createDataLayout());
   if (Conf.OptPipeline.empty())
-    runOldPMPasses(Conf, Mod, TM, IsThinLto);
+    runOldPMPasses(Conf, Mod, TM, IsThinLTO);
   else
     runNewPMCustomPasses(Mod, TM, Conf.OptPipeline, Conf.AAPipeline,
                          Conf.DisableVerify);
@@ -302,7 +302,7 @@ Error lto::backend(Config &C, AddStreamF
   handleAsmUndefinedRefs(*Mod, *TM);
 
   if (!C.CodeGenOnly)
-    if (!opt(C, TM.get(), 0, *Mod, /*IsThinLto=*/false))
+    if (!opt(C, TM.get(), 0, *Mod, /*IsThinLTO=*/false))
       return Error::success();
 
   if (ParallelCodeGenParallelismLevel == 1) {
@@ -364,7 +364,7 @@ Error lto::thinBackend(Config &Conf, uns
   if (Conf.PostImportModuleHook && !Conf.PostImportModuleHook(Task, Mod))
     return Error::success();
 
-  if (!opt(Conf, TM.get(), Task, Mod, /*IsThinLto=*/true))
+  if (!opt(Conf, TM.get(), Task, Mod, /*IsThinLTO=*/true))
     return Error::success();
 
   codegen(Conf, TM.get(), AddStream, Task, Mod);




More information about the llvm-commits mailing list