v.g.vassilev added inline comments.
================
Comment at: clang/lib/Interpreter/Interpreter.cpp:383
+
+static std::string MangleName(ASTContext &C, GlobalDecl GD) {
+ std::unique_ptr<MangleContext> MangleC(C.createMangleContext());
----------------
I suspect we could use `IncrementalParser::GetMangledName` which in turn uses
codegen's caching. In that case we could avoid having a dtor cache altogether
and move all of the logic inside the RuntimeInterfaceBuilder.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141215/new/
https://reviews.llvm.org/D141215
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits