mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 19:29:54 +00:00
[LTO] Remove dead-code: collectUsedGlobalVariables has been moved to Thin and LTO specifc path (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f17d15a58d
commit
3287fed753
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user