Rewrite MachineOperand::print and MachineInstr::print to avoid
authorEric Christopher <echristo@gmail.com>
Fri, 27 Feb 2015 00:11:34 +0000 (00:11 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 27 Feb 2015 00:11:34 +0000 (00:11 +0000)
commit9656d2d2bc38f78a0be73b3bbba8c60d231e7a75
treec5267c92041ab58aeb3d84fe8c527192eae901eb
parentfc0ad8d28d33571d87ffae6953106365e084c552
Rewrite MachineOperand::print and MachineInstr::print to avoid
uses of TM->getSubtargetImpl and propagate to all calls.

This could be a debugging regression in places where we had a
TargetMachine and/or MachineFunction but don't have it as part
of the MachineInstr. Fixing this would require passing a
MachineFunction/Function down through the print operator, but
none of the existing uses in tree seem to do this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230710 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
include/llvm/CodeGen/MachineOperand.h
lib/CodeGen/LiveDebugVariables.cpp
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/ScheduleDAGInstrs.cpp
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
lib/Target/X86/X86FloatingPoint.cpp