Make the Mips AsmPrinter independent of global subtarget
authorEric Christopher <echristo@gmail.com>
Wed, 18 Feb 2015 01:01:57 +0000 (01:01 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 18 Feb 2015 01:01:57 +0000 (01:01 +0000)
commit3a7a58d6e0c37862209e44e7c8842abd8597c519
tree285066e00a0b7d93451755ecac80328e670c5421
parent68499a2f20bf17e265be9f3a39f3f98a84421cc4
Make the Mips AsmPrinter independent of global subtarget
initialization. Initialize the subtarget once per function and
migrate EmitStartOfAsmFile to either use calls on the
TargetMachine or get information from the subtarget we'd use
for assembling.

The top-level-ness of the MIPS attribute output for assembly is,
by nature, contrary to how we'd want to do this for an LTO
situation where we have multiple cpu architectures so this
solution is good enough for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229596 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsAsmPrinter.h