Reputation: 21
Is there a way by which we can change bitcode generated from clang ? i.e. can we inject some special identified data in generated bitcode ?
Upvotes: 0
Views: 176
Reputation: 618
Yea, you can read bitcode, modify it, and write it back out.
The opt tool does this when optimizing modules.
Upvotes: 1