Nimish Sakalkale
Nimish Sakalkale

Reputation: 21

Can we change bitcode generated from clang?

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

Answers (1)

Colin LeMahieu
Colin LeMahieu

Reputation: 618

Yea, you can read bitcode, modify it, and write it back out.

The opt tool does this when optimizing modules.

Upvotes: 1

Related Questions