Minor changes

This commit is contained in:
Alessandro Di Federico
2023-08-03 14:52:44 +02:00
parent fb323592ca
commit a207ef7c44
6 changed files with 7 additions and 20 deletions
+2 -2
View File
@@ -880,7 +880,7 @@ bool DeclVisitor::VisitFunctionDecl(const clang::FunctionDecl *FD) {
ModelFunction.OriginalName() = Function->OriginalName();
ModelFunction.ExportedNames() = Function->ExportedNames();
// TODO: Remember/clone StackFrameType as well.
// TODO: remember/clone StackFrameType as well.
auto Prototype = Model->recordNewType(std::move(NewType));
ModelFunction.Prototype() = Prototype;
@@ -894,7 +894,7 @@ bool DeclVisitor::VisitTypedefDecl(const TypedefDecl *D) {
revng_assert(AnalysisOption != ImportModelFromCOption::EditFunctionPrototype);
auto TheType = D->getUnderlyingType();
QualType TheType = D->getUnderlyingType();
if (auto Fn = llvm::dyn_cast<FunctionProtoType>(TheType)) {
// Parse the ABI from annotate attribute attached to the typedef
// declaration. Please do note that annotations on the parameters are not