diff options
author | Fangrui Song <maskray@google.com> | 2018-04-19 23:23:23 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-04-19 23:23:23 +0000 |
commit | b72daf00f45a92a07cd539025cf83f975ba65079 (patch) | |
tree | 090839aba1e858e7ddfedbb165d63cad1ea6c384 /lld/ELF/ScriptParser.cpp | |
parent | 3fe5b7a497249a5886d437b67e8da3d70b098a4d (diff) | |
download | bcm5719-llvm-b72daf00f45a92a07cd539025cf83f975ba65079.tar.gz bcm5719-llvm-b72daf00f45a92a07cd539025cf83f975ba65079.zip |
[ELF] Increase NextGroupId with --end-group
Reviewers: ruiu, espindola
Subscribers: emaste, arichardson, llvm-commits
Differential Revision: https://reviews.llvm.org/D45846
llvm-svn: 330379
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 907f1025e93..5ed5b491aa4 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -333,6 +333,8 @@ void ScriptParser::readGroup() { InputFile::IsInGroup = true; readInput(); InputFile::IsInGroup = Orig; + if (!Orig) + ++InputFile::NextGroupId; } void ScriptParser::readInclude() { |