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)
commit0d6199b3af7f6e5f118979a017c355a4917c49cd
treede3651a74897f2ff0f8995875159b74d7ba2b849
parentd802a47f96dad4775f87f0764f09776ac9b603c2
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.

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