GlobalISel: store the current MachineFunction as direct state. NFC.
authorTim Northover <tnorthover@apple.com>
Wed, 7 Dec 2016 21:17:47 +0000 (21:17 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 7 Dec 2016 21:17:47 +0000 (21:17 +0000)
commit50db7f416c5442a4b033628b7ef73377f621f7ec
treeda873b3e5728e8973d2a1ec45968890b620f6605
parentd4db0b374840a6cd9ab2b0d96e7c1f6e41ec3f12
GlobalISel: store the current MachineFunction as direct state. NFC.

Having to ask the MIRBuilder for the current function is a little awkward, and
I'm intending to improve how that's threaded through anyway.

llvm-svn: 288983
llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp