OSDN Git Service

LLVMTargetMachine: Add functions to create MIModuleInfo/MIFunction; NFC
authorMatthias Braun <matze@braunis.de>
Tue, 10 May 2016 01:32:40 +0000 (01:32 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 10 May 2016 01:32:40 +0000 (01:32 +0000)
commitbf765dfe2148742344f84b1032793a4ff2d174c9
tree4dbffb5ee0e1faec7e02fce3d5ec5b070e32ac7c
parentc2cb1b7b04b3d966e92cd3b52ce2f9c929c4bdf6
LLVMTargetMachine: Add functions to create MIModuleInfo/MIFunction; NFC

Add convenience function to create MachineModuleInfo and
MachineFunctionAnalysis passes and add them to a pass manager.

Despite factoring out some shared code in
LiveIntervalTest/LLVMTargetMachine this will be used by my upcoming llc
change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269002 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetMachine.h
lib/CodeGen/LLVMTargetMachine.cpp
unittests/MI/LiveIntervalTest.cpp