diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-02-26 15:23:42 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-02-26 15:23:42 +0000 |
commit | e4fae4d5b6ca4a10d060d9a0df14dcfdf4b8b63e (patch) | |
tree | 160d72c59934215ab3eb098ffa914e4853e97406 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 98fcd2eb27f82638ad1c2da0b50b6be107990bbc (diff) | |
download | bcm5719-llvm-e4fae4d5b6ca4a10d060d9a0df14dcfdf4b8b63e.tar.gz bcm5719-llvm-e4fae4d5b6ca4a10d060d9a0df14dcfdf4b8b63e.zip |
[CodeGen] Don't omit any redundant information in -debug output
In r322867, we introduced IsStandalone when printing MIR in -debug
output. The default behaviour for that was:
1) If any of MBB, MI, or MO are -debug-printed separately, don't omit any
redundant information.
2) When -debug-printing a MF entirely, don't print any redundant
information.
3) When printing MIR, don't print any redundant information.
I'd like to change 2) to:
2) When -debug-printing a MF entirely, don't omit any redundant information.
Differential Revision: https://reviews.llvm.org/D43337
llvm-svn: 326094
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 58ad3c96c34..e7a1502cc5a 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -522,9 +522,8 @@ void MachineFunction::print(raw_ostream &OS, const SlotIndexes *Indexes) const { MST.incorporateFunction(getFunction()); for (const auto &BB : *this) { OS << '\n'; - // If we print the whole function, don't print any verbose information, - // since that information is already present. - BB.print(OS, MST, Indexes, /*IsStandalone=*/false); + // If we print the whole function, print it at its most verbose level. + BB.print(OS, MST, Indexes, /*IsStandalone=*/true); } OS << "\n# End machine code for function " << getName() << ".\n\n"; |