aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-01 03:03:21 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-01 03:03:21 +0000
commit85fb9e058ed74ad9b4fe919056d1d6874f398b39 (patch)
treed0f0ef115da3cf8137ba894af8426b9c6e82ce71 /llvm/lib/IR/ModuleSummaryIndex.cpp
parentf83ab6de56eeb651b1ce06ea98ada9175a2beb17 (diff)
downloadllvm-85fb9e058ed74ad9b4fe919056d1d6874f398b39.zip
llvm-85fb9e058ed74ad9b4fe919056d1d6874f398b39.tar.gz
llvm-85fb9e058ed74ad9b4fe919056d1d6874f398b39.tar.bz2
Revert "Add support for computing SHA1 in LLVM"
This reverts commit r265096, r265095, and r265094. Windows build is broken, and the validation does not pass. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 265102
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r--llvm/lib/IR/ModuleSummaryIndex.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp
index c23e072..16b58dd 100644
--- a/llvm/lib/IR/ModuleSummaryIndex.cpp
+++ b/llvm/lib/IR/ModuleSummaryIndex.cpp
@@ -37,11 +37,9 @@ void ModuleSummaryIndex::mergeFrom(std::unique_ptr<ModuleSummaryIndex> Other,
// Add the module path string ref for this module if we haven't already
// saved a reference to it.
- if (ModPath.empty()) {
- auto Path = Info->summary()->modulePath();
- ModPath = addModulePath(Path, NextModuleId, Other->getModuleHash(Path))
- ->first();
- } else
+ if (ModPath.empty())
+ ModPath = addModulePath(Info->summary()->modulePath(), NextModuleId);
+ else
assert(ModPath == Info->summary()->modulePath() &&
"Each module in the combined map should have a unique ID");