[LTO] Remove dead-code: collectUsedGlobalVariables has been moved to Thin and LTO...
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 19 Aug 2016 15:35:44 +0000 (15:35 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 19 Aug 2016 15:35:44 +0000 (15:35 +0000)
llvm-svn: 279261

llvm/lib/LTO/LTO.cpp

index 5a1b887..bd11085 100644 (file)
@@ -230,10 +230,8 @@ Error LTO::add(std::unique_ptr<InputFile> Input,
   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())