projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78111a7
)
[LTO] Remove dead-code: collectUsedGlobalVariables has been moved to Thin and LTO...
author
Mehdi Amini
<mehdi.amini@apple.com>
Fri, 19 Aug 2016 15:35:44 +0000
(15:35 +0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Fri, 19 Aug 2016 15:35:44 +0000
(15:35 +0000)
llvm-svn: 279261
llvm/lib/LTO/LTO.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/LTO/LTO.cpp
b/llvm/lib/LTO/LTO.cpp
index
5a1b887
..
bd11085
100644
(file)
--- a/
llvm/lib/LTO/LTO.cpp
+++ b/
llvm/lib/LTO/LTO.cpp
@@
-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())