OSDN Git Service

MachineModuleInfo: Avoid dummy constructor, use INITIALIZE_TM_PASS
authorMatthias Braun <matze@braunis.de>
Wed, 24 Aug 2016 00:42:05 +0000 (00:42 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 24 Aug 2016 00:42:05 +0000 (00:42 +0000)
commit43f89c5079be6822e13742806189c3d597eff345
tree42a259e2d8f3be5a6be6da70b69d6736e65b3ae3
parent7374d9083b20ab2e7535fca2fb7f6318ae4daac1
MachineModuleInfo: Avoid dummy constructor, use INITIALIZE_TM_PASS

Change this pass constructor to just accept a const TargetMachine * and
use INITIALIZE_TM_PASS, that way we can get rid of the dummy
constructor. The pass will still fail when calling the default
constructor leading to TM == nullptr, this is no different than before
but is more in line what other codegen passes are doing and avoids the
dummy constructor.

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