2

I have been reading this article on implementing fast forwarding in Objective C using LLVM and had an idea for doing something similar. Is it possible to generate Objective C code to extend an existing class using LLVM? I have a class definition. Now I want to add a new message to that class using LLVM. Would that be possible?

1 Answer 1

1

Well, you can do this with the Runtime library, add methods etc....Runtime Reference

Look at...

BOOL class_addMethod(Class cls, SEL name, IMP imp, const char *types)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.