[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 02:51:09 PST 2024
Pol Marcet =?utf-8?q?Sard=C3=A0?= <polmarcetsarda at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/76825 at github.com>
================
@@ -196,8 +217,20 @@ void ClangASTNodesEmitter::run(raw_ostream &OS) {
}
void clang::EmitClangASTNodes(RecordKeeper &RK, raw_ostream &OS,
- const std::string &N, const std::string &S) {
- ClangASTNodesEmitter(RK, N, S).run(OS);
+ const std::string &N, const std::string &S,
+ std::string_view PriorizeIfSubclassOf) {
+ ClangASTNodesEmitter(RK, N, S, PriorizeIfSubclassOf).run(OS);
+}
+
+void printDeclContext(std::multimap<Record *, Record *> &Tree,
----------------
cor3ntin wrote:
```suggestion
void printDeclContext(const std::multimap<Record *, Record *> &Tree,
```
https://github.com/llvm/llvm-project/pull/76825
More information about the cfe-commits
mailing list