summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunctionPass.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-08-19 22:31:45 +0000
committerMatthias Braun <matze@braunis.de>2016-08-19 22:31:45 +0000
commita7d6fc9618aaee28fbbe2324ee8f6168e551d64f (patch)
tree580ae7ab5c24f70907bf3fa5fc129ee1cf91dc30 /llvm/lib/CodeGen/MachineFunctionPass.cpp
parenta3b983aa5ed22e3e026f70f9a2c58f19ff334528 (diff)
downloadbcm5719-llvm-a7d6fc9618aaee28fbbe2324ee8f6168e551d64f.tar.gz
bcm5719-llvm-a7d6fc9618aaee28fbbe2324ee8f6168e551d64f.zip
MachineFunction: Cleanup/simplify MachineFunctionProperties::print()
- Always compile print() regardless of LLVM_ENABLE_DUMP. (We usually only gard dump() functions with that). - Only show the set properties to reduce output clutter. - Remove the unused variant that even shows the unset properties. - Fix comments llvm-svn: 279338
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunctionPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunctionPass.cpp b/llvm/lib/CodeGen/MachineFunctionPass.cpp
index 228fe170ab4..524ebdbf657 100644
--- a/llvm/lib/CodeGen/MachineFunctionPass.cpp
+++ b/llvm/lib/CodeGen/MachineFunctionPass.cpp
@@ -49,7 +49,7 @@ bool MachineFunctionPass::runOnFunction(Function &F) {
errs() << "MachineFunctionProperties required by " << getPassName()
<< " pass are not met by function " << F.getName() << ".\n"
<< "Required properties: ";
- RequiredProperties.print(errs(), /*OnlySet=*/true);
+ RequiredProperties.print(errs());
errs() << "\nCurrent properties: ";
MFProps.print(errs());
errs() << "\n";
OpenPOWER on IntegriCloud