[llvm] r279261 - [LTO] Remove dead-code: collectUsedGlobalVariables has been moved to Thin and LTO specifc path (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 08:35:44 PDT 2016


Author: mehdi_amini
Date: Fri Aug 19 10:35:44 2016
New Revision: 279261

URL: http://llvm.org/viewvc/llvm-project?rev=279261&view=rev
Log:
[LTO] Remove dead-code: collectUsedGlobalVariables has been moved to Thin and LTO specifc path (NFC)

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

Modified: llvm/trunk/lib/LTO/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTO.cpp?rev=279261&r1=279260&r2=279261&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTO.cpp (original)
+++ llvm/trunk/lib/LTO/LTO.cpp Fri Aug 19 10:35:44 2016
@@ -230,10 +230,8 @@ Error LTO::add(std::unique_ptr<InputFile
   if (Conf.ResolutionFile)
     writeToResolutionFile(Input.get(), Res);
 
+  // FIXME: move to backend
   Module &M = Input->Obj->getModule();
-  SmallPtrSet<GlobalValue *, 8> Used;
-  collectUsedGlobalVariables(M, Used, /*CompilerUsed*/ false);
-
   if (!Conf.OverrideTriple.empty())
     M.setTargetTriple(Conf.OverrideTriple);
   else if (M.getTargetTriple().empty())




More information about the llvm-commits mailing list