summaryrefslogtreecommitdiffstats
path: root/lld
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-02-27 05:26:05 +0000
committerRui Ueyama <ruiu@google.com>2015-02-27 05:26:05 +0000
commit0bde1de3bdf6d68d0a5011f4000ceb80c768d537 (patch)
tree1a1943fc38a80e41c82d08a884d67013d5fd60e4 /lld
parent6c39e7789671d0676076e18e1f345d2aec0a953e (diff)
downloadbcm5719-llvm-0bde1de3bdf6d68d0a5011f4000ceb80c768d537.tar.gz
bcm5719-llvm-0bde1de3bdf6d68d0a5011f4000ceb80c768d537.zip
Temporarily disable FileArchive::preload().
It is observed that the function throws std::future_error on a few buildbots. That cannot be easily reproducible on local machines. Kill the feature temporarily to see if this is going to fix the buildbot issue. llvm-svn: 230735
Diffstat (limited to 'lld')
-rw-r--r--lld/lib/Core/Resolver.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp
index ff217f248ea..58b751ac17f 100644
--- a/lld/lib/Core/Resolver.cpp
+++ b/lld/lib/Core/Resolver.cpp
@@ -31,12 +31,9 @@ bool Resolver::handleFile(const File &file) {
bool undefAdded = false;
for (const DefinedAtom *atom : file.defined())
doDefinedAtom(*atom);
- for (const UndefinedAtom *atom : file.undefined()) {
- if (doUndefinedAtom(*atom)) {
+ for (const UndefinedAtom *atom : file.undefined())
+ if (doUndefinedAtom(*atom))
undefAdded = true;
- maybePreloadArchiveMember(atom->name());
- }
- }
for (const SharedLibraryAtom *atom : file.sharedLibrary())
doSharedLibraryAtom(*atom);
for (const AbsoluteAtom *atom : file.absolute())
@@ -232,17 +229,6 @@ void Resolver::addAtoms(const std::vector<const DefinedAtom *> &newAtoms) {
doDefinedAtom(*newAtom);
}
-// Instantiate an archive file member if there's a file containing a
-// defined symbol for a given symbol name. Instantiation is done in a
-// different worker thread and has no visible side effect.
-void Resolver::maybePreloadArchiveMember(StringRef sym) {
- auto it = _archiveMap.find(sym);
- if (it == _archiveMap.end())
- return;
- ArchiveLibraryFile *archive = it->second;
- archive->preload(_context.getTaskGroup(), sym);
-}
-
// Returns true if at least one of N previous files has created an
// undefined symbol.
bool Resolver::undefinesAdded(int begin, int end) {
OpenPOWER on IntegriCloud