summaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.h')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenModule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.h b/clang/lib/CIR/CodeGen/CIRGenModule.h
index 95a7ac0648bb..073e8d96b773 100644
--- a/clang/lib/CIR/CodeGen/CIRGenModule.h
+++ b/clang/lib/CIR/CodeGen/CIRGenModule.h
@@ -121,6 +121,12 @@ public:
mlir::Operation *lastGlobalOp = nullptr;
+ /// Keep a map between lambda fields and names, this needs to be per module
+ /// since lambdas might get generated later as part of defered work, and since
+ /// the pointers are supposed to be uniqued, should be fine. Revisit this if
+ /// it ends up taking too much memory.
+ llvm::DenseMap<const clang::FieldDecl *, llvm::StringRef> lambdaFieldToName;
+
/// Tell the consumer that this variable has been instantiated.
void handleCXXStaticMemberVarInstantiation(VarDecl *vd);