File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ class CIRGenerator : public clang::ASTConsumer {
79
79
void HandleTranslationUnit (clang::ASTContext &astContext) override ;
80
80
void HandleInlineFunctionDefinition (clang::FunctionDecl *d) override ;
81
81
void HandleTagDeclDefinition (clang::TagDecl *d) override ;
82
+ void HandleTagDeclRequiredDefinition (const clang::TagDecl *D) override ;
83
+ void HandleCXXStaticMemberVarInstantiation (clang::VarDecl *D) override ;
82
84
void CompleteTentativeDefinition (clang::VarDecl *d) override ;
85
+ void HandleVTable (clang::CXXRecordDecl *rd) override ;
83
86
84
87
mlir::ModuleOp getModule () const ;
85
88
mlir::MLIRContext &getMLIRContext () { return *mlirContext; };
Original file line number Diff line number Diff line change @@ -152,9 +152,30 @@ void CIRGenerator::HandleTagDeclDefinition(TagDecl *d) {
152
152
cgm->errorNYI (d->getSourceRange (), " HandleTagDeclDefinition: OpenMP" );
153
153
}
154
154
155
+ void CIRGenerator::HandleTagDeclRequiredDefinition (const TagDecl *D) {
156
+ if (diags.hasErrorOccurred ())
157
+ return ;
158
+
159
+ assert (!cir::MissingFeatures::generateDebugInfo ());
160
+ }
161
+
162
+ void CIRGenerator::HandleCXXStaticMemberVarInstantiation (VarDecl *D) {
163
+ if (diags.hasErrorOccurred ())
164
+ return ;
165
+
166
+ cgm->errorNYI (D->getSourceRange (), " HandleCXXStaticMemberVarInstantiation" );
167
+ }
168
+
155
169
void CIRGenerator::CompleteTentativeDefinition (VarDecl *d) {
156
170
if (diags.hasErrorOccurred ())
157
171
return ;
158
172
159
173
cgm->emitTentativeDefinition (d);
160
174
}
175
+
176
+ void CIRGenerator::HandleVTable (CXXRecordDecl *rd) {
177
+ if (diags.hasErrorOccurred ())
178
+ return ;
179
+
180
+ cgm->errorNYI (rd->getSourceRange (), " HandleVTable" );
181
+ }
Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ class CIRGenConsumer : public clang::ASTConsumer {
84
84
return true ;
85
85
}
86
86
87
+ void HandleCXXStaticMemberVarInstantiation (clang::VarDecl *VD) override {
88
+ Gen->HandleCXXStaticMemberVarInstantiation (VD);
89
+ }
90
+
87
91
void HandleInlineFunctionDefinition (FunctionDecl *D) override {
88
92
Gen->HandleInlineFunctionDefinition (D);
89
93
}
@@ -147,9 +151,15 @@ class CIRGenConsumer : public clang::ASTConsumer {
147
151
Gen->HandleTagDeclDefinition (D);
148
152
}
149
153
154
+ void HandleTagDeclRequiredDefinition (const TagDecl *D) override {
155
+ Gen->HandleTagDeclRequiredDefinition (D);
156
+ }
157
+
150
158
void CompleteTentativeDefinition (VarDecl *D) override {
151
159
Gen->CompleteTentativeDefinition (D);
152
160
}
161
+
162
+ void HandleVTable (CXXRecordDecl *RD) override { Gen->HandleVTable (RD); }
153
163
};
154
164
} // namespace cir
155
165
You can’t perform that action at this time.
0 commit comments