OSDN Git Service

CodeGen: Add MachineInstr::getMF(). NFC
authorJustin Bogner <mail@justinbogner.com>
Tue, 10 Oct 2017 23:34:01 +0000 (23:34 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 10 Oct 2017 23:34:01 +0000 (23:34 +0000)
commit9c03aa5c0a9419547b6b79ccf45a9465b02f494e
tree423de67380fcbe379d81b903984c92d94701ed6a
parentc9dc2816f16b6e5162ca71fef71387a725a901fd
CodeGen: Add MachineInstr::getMF(). NFC

Similarly to how Instruction has getFunction, this adds a less verbose
way to write MI->getParent()->getParent(). I'll follow up shortly with
a change that changes a bunch of the uses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315388 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp