aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-13 22:02:08 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-13 22:02:08 +0000
commitb1e7a12ee89ffcf50d0b18f8c6da7423604ea9d8 (patch)
tree757d7fbfc219efa1b5ddbfbd9956ea8435fbabec /llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
parent4e8d1475bdb6fdecd938678e0e0a8e0ab543ffc1 (diff)
downloadllvm-b1e7a12ee89ffcf50d0b18f8c6da7423604ea9d8.zip
llvm-b1e7a12ee89ffcf50d0b18f8c6da7423604ea9d8.tar.gz
llvm-b1e7a12ee89ffcf50d0b18f8c6da7423604ea9d8.tar.bz2
Add _LIBCPP_DIAGNOSE_WARNING and _LIBCPP_DIAGNOSE_ERROR macros.
Clang recently added a `diagnose_if(cond, msg, type)` attribute which can be used to generate diagnostics when `cond` is a constant expression that evaluates to true. Otherwise no attribute has no effect. This patch adds _LIBCPP_DIAGNOSE_ERROR/WARNING macros which use this new attribute. Additionally this patch implements a diagnostic message when a non-const-callable comparator is given to a container. Note: For now the warning version of the diagnostic is useless within libc++ since warning diagnostics are suppressed by the system header pragma. I'm going to work on fixing this. llvm-svn: 291961
Diffstat (limited to 'llvm/lib/CodeGen/ResetMachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions