Add an MCSubtargetInfo variable to the TargetMachine.
authorEric Christopher <echristo@gmail.com>
Thu, 19 Mar 2015 22:36:37 +0000 (22:36 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 19 Mar 2015 22:36:37 +0000 (22:36 +0000)
commit12cf76fe266bba04e8cb1f2d18e44e5947fab9a0
tree4676260d00cb89540bea564ed3e8da136c387af3
parent72e23a219c7b612399f99bf28ee58a81077618c5
Add an MCSubtargetInfo variable to the TargetMachine.

This enables us to remove calls to the subtarget from the TargetMachine
and with a small hack for backends that require global subtarget
information for module level code generation, e.g. mips abi flags, as
mentioned in a fixme in the code.

llvm-svn: 232776
llvm/include/llvm/Target/TargetMachine.h
llvm/lib/CodeGen/LLVMTargetMachine.cpp
llvm/lib/Target/TargetMachine.cpp