summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/Resolver.cpp
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2013-10-09 03:40:29 +0000
committerShankar Easwaran <shankare@codeaurora.org>2013-10-09 03:40:29 +0000
commit03f7763d21023e8493105574a522ce1b99881604 (patch)
tree61c2c7ae3b422629193f1560adb2598ec9d8e68b /lld/lib/Core/Resolver.cpp
parenta3a542ff2115f3c758c167eaed6a23ed43ed2347 (diff)
downloadbcm5719-llvm-03f7763d21023e8493105574a522ce1b99881604.tar.gz
bcm5719-llvm-03f7763d21023e8493105574a522ce1b99881604.zip
[inputGraph] Associate Resolve state with appropriate nodes
This associates resolveState to FileNodes. The control node derive their resolution state from the inputElements that are contained in it. This makes --start-group/--end-group to work with ELF linking. llvm-svn: 192269
Diffstat (limited to 'lld/lib/Core/Resolver.cpp')
-rw-r--r--lld/lib/Core/Resolver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp
index ca383abf326..c8d1549c64b 100644
--- a/lld/lib/Core/Resolver.cpp
+++ b/lld/lib/Core/Resolver.cpp
@@ -292,6 +292,7 @@ void Resolver::resolveUndefines() {
ScopedTask task(getDefaultDomain(), "resolveUndefines");
while (ErrorOr<File &> nextFile = _context.nextFile()) {
+ _context.setResolverState(Resolver::StateNoChange);
if (error_code(nextFile) == InputGraphError::no_more_files)
break;
if (nextFile->kind() == File::kindObject)
OpenPOWER on IntegriCloud