Remove the need to go from IRCode to DexCode by making an IRCode copy
Remove the need to go from IRCode to DexCode by making an IRCode copy

Summary:
Instead of going through DexCode, make a copy of the IRCode and pass it to the
new method.

Reviewed By: int3

Differential Revision: D5135391

fbshipit-source-id: 3bdc00266f614305e7592995f4270fd98506d757

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex