diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-16 23:19:02 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-16 23:19:02 +0000 |
commit | 3b8011f1080be9a57d4d5ae48d0d1255880f8baf (patch) | |
tree | 10dbf8d00653cf131eaa4efd05b96d10f8d3fd37 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | b5381eef6f9e7dcd1246af8d62aec9a4e37de36b (diff) | |
download | bcm5719-llvm-3b8011f1080be9a57d4d5ae48d0d1255880f8baf.tar.gz bcm5719-llvm-3b8011f1080be9a57d4d5ae48d0d1255880f8baf.zip |
ModuleSummaryAnalysis: Remove some duplicate code. NFCI.
llvm-svn: 290003
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp index 7ae37b253dd..3f5100d4252 100644 --- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp +++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp @@ -208,11 +208,6 @@ ModuleSummaryIndex llvm::buildModuleSummaryIndex( SmallPtrSet<GlobalValue *, 8> Used; // First collect those in the llvm.used set. collectUsedGlobalVariables(M, Used, /*CompilerUsed*/ false); - for (auto *V : Used) { - if (V->hasLocalLinkage()) - LocalsUsed.insert(V); - } - Used.clear(); // Next collect those in the llvm.compiler.used set. collectUsedGlobalVariables(M, Used, /*CompilerUsed*/ true); for (auto *V : Used) { |