Skip to content

Commit

Permalink
scan before emit
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Nov 26, 2024
1 parent f9bf25a commit d09f40e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen/objcgen.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ class ObjcProtocol : public ObjcClasslike {
public:
ObjcProtocol(llvm::Module &module, ObjCState &objc, ClassDeclaration *decl) :
ObjcClasslike(module, objc, decl) {
this->emit();
this->scan();
this->emit();
}

// Gets the type of an Objective-C class_t struct
Expand Down Expand Up @@ -380,8 +380,8 @@ class ObjcClass : public ObjcClasslike {
public:
ObjcClass(llvm::Module &module, ObjCState &objc, ClassDeclaration *decl) :
ObjcClasslike(module, objc, decl) {
this->emit();
this->scan();
this->emit();
}

// Gets objective-c the flags for the class declaration
Expand Down

0 comments on commit d09f40e

Please sign in to comment.