diff options
| author | Ivan Krasin <krasin@chromium.org> | 2015-10-26 21:36:35 +0000 |
|---|---|---|
| committer | Ivan Krasin <krasin@chromium.org> | 2015-10-26 21:36:35 +0000 |
| commit | 298639a5fd6b8a7ce2360eb82e34bc1dc4c0ad82 (patch) | |
| tree | 9d9e3b5ab9c8a519d4f455f2b9ac32ea3527733d /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
| parent | 939f089242cd22a0192fd30ed4216f66e77b3cf6 (diff) | |
| download | bcm5719-llvm-298639a5fd6b8a7ce2360eb82e34bc1dc4c0ad82.tar.gz bcm5719-llvm-298639a5fd6b8a7ce2360eb82e34bc1dc4c0ad82.zip | |
Move imported entities into DwarfCompilationUnit to speed up LTO linking.
Summary:
In particular, this CL speeds up the official Chrome linking with LTO by
1.8x.
See more details in https://crbug.com/542426
Reviewers: dblaikie
Subscribers: jevinskie
Differential Revision: http://reviews.llvm.org/D13918
llvm-svn: 251353
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index f29ad65129c..69ae8a64914 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -342,9 +342,9 @@ void DwarfCompileUnit::constructScopeDIE( // Skip imported directives in gmlt-like data. if (!includeMinimalInlineScopes()) { // There is no need to emit empty lexical block DIE. - for (const auto &E : DD->findImportedEntitiesForScope(DS)) - Children.push_back( - constructImportedEntityDIE(cast<DIImportedEntity>(E.second))); + for (const auto *IE : ImportedEntities[DS]) + Children.push_back( + constructImportedEntityDIE(cast<DIImportedEntity>(IE))); } // If there are only other scopes as children, put them directly in the |

