summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-08-19 15:35:44 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-08-19 15:35:44 +0000
commit9989f80ae8f831888f8d263220cce3bb9585564b (patch)
tree020eac6102f26fbfd11d956babcf343772a5d8e8 /llvm/lib/LTO/LTO.cpp
parent78111a76173e798ccb25746d41329536616a2215 (diff)
downloadbcm5719-llvm-9989f80ae8f831888f8d263220cce3bb9585564b.tar.gz
bcm5719-llvm-9989f80ae8f831888f8d263220cce3bb9585564b.zip
[LTO] Remove dead-code: collectUsedGlobalVariables has been moved to Thin and LTO specifc path (NFC)
llvm-svn: 279261
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp4
1 files changed, 1 insertions, 3 deletions
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<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())
OpenPOWER on IntegriCloud