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/DwarfDebug.h | |
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/DwarfDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index ffe96ff9f43..9be95b0ac06 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -289,11 +289,6 @@ class DwarfDebug : public AsmPrinterHandler { /// Holders for the various debug information flags that we might need to /// have exposed. See accessor functions below for description. - /// Holder for imported entities. - typedef SmallVector<std::pair<const MDNode *, const MDNode *>, 32> - ImportedEntityMap; - ImportedEntityMap ScopesWithImportedEntities; - /// Map from MDNodes for user-defined types to the type units that /// describe them. DenseMap<const MDNode *, const DwarfTypeUnit *> DwarfTypeUnits; @@ -626,14 +621,6 @@ public: const MachineFunction *getCurrentFunction() const { return CurFn; } - iterator_range<ImportedEntityMap::const_iterator> - findImportedEntitiesForScope(const MDNode *Scope) const { - return make_range(std::equal_range( - ScopesWithImportedEntities.begin(), ScopesWithImportedEntities.end(), - std::pair<const MDNode *, const MDNode *>(Scope, nullptr), - less_first())); - } - /// A helper function to check whether the DIE for a given Scope is /// going to be null. bool isLexicalScopeDIENull(LexicalScope *Scope); |