summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunctionPass.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2016-04-21 22:19:24 +0000
committerDerek Schuff <dschuff@google.com>2016-04-21 22:19:24 +0000
commit025191d42feb2636026efeb93d9f5b05de0571ea (patch)
tree1b64471cb369c85d1df1ccfa4bb69c4326ed42c3 /llvm/lib/CodeGen/MachineFunctionPass.cpp
parentd46e58d38e770b967632fe6e6c16fd4d561c7cb7 (diff)
downloadbcm5719-llvm-025191d42feb2636026efeb93d9f5b05de0571ea.tar.gz
bcm5719-llvm-025191d42feb2636026efeb93d9f5b05de0571ea.zip
Improve error message reporting for MachineFunctionProperties
When printing the properties required by a pass, only print the properties that are set, and not those that are clear (only properties that are set are verified, clear properties are "don't-care"). llvm-svn: 267070
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 f6cb36e1a20..16aecb9dff4 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());
+ RequiredProperties.print(errs(), /*OnlySet=*/true);
errs() << "\nCurrent properties: ";
MFProps.print(errs());
errs() << "\n";
OpenPOWER on IntegriCloud