From 9989f80ae8f831888f8d263220cce3bb9585564b Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 19 Aug 2016 15:35:44 +0000 Subject: [LTO] Remove dead-code: collectUsedGlobalVariables has been moved to Thin and LTO specifc path (NFC) llvm-svn: 279261 --- llvm/lib/LTO/LTO.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/LTO/LTO.cpp') diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 5a1b8872bee..bd11085ed1c 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -230,10 +230,8 @@ Error LTO::add(std::unique_ptr Input, if (Conf.ResolutionFile) writeToResolutionFile(Input.get(), Res); + // FIXME: move to backend Module &M = Input->Obj->getModule(); - SmallPtrSet Used; - collectUsedGlobalVariables(M, Used, /*CompilerUsed*/ false); - if (!Conf.OverrideTriple.empty()) M.setTargetTriple(Conf.OverrideTriple); else if (M.getTargetTriple().empty()) -- cgit v1.2.3