diff options
author | Peng Guo <peng_guo@apple.com> | 2020-01-10 11:18:11 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-10 11:18:12 +0100 |
commit | cfd849840134c4632c2f4fa498dfb93c47825b24 (patch) | |
tree | 5f4cbedb08687a31f16bbada31c6593b7fcf0e47 /llvm/lib/CodeGen/SelectionDAG | |
parent | a1cc19b581443c84fff4c6e6d4e341351ef3203c (diff) | |
download | bcm5719-llvm-cfd849840134c4632c2f4fa498dfb93c47825b24.tar.gz bcm5719-llvm-cfd849840134c4632c2f4fa498dfb93c47825b24.zip |
[MIR] Fix cyclic dependency of MIR formatter
Summary:
Move MIR formatter pointer from TargetMachine to TargetInstrInfo to
avoid cyclic dependency between target & codegen.
Reviewers: dsanders, bkramer, arsenm
Subscribers: wdng, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D72485
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index cbdcb93e60c..6fd71393bf3 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @@ -480,8 +480,7 @@ static void printMemOperand(raw_ostream &OS, const MachineMemOperand &MMO, if (MF) MST.incorporateFunction(MF->getFunction()); SmallVector<StringRef, 0> SSNs; - MMO.print(OS, MST, SSNs, Ctx, MFI, TII, - MF ? MF->getTarget().getMIRFormatter() : nullptr); + MMO.print(OS, MST, SSNs, Ctx, MFI, TII); } static void printMemOperand(raw_ostream &OS, const MachineMemOperand &MMO, |