summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-22 10:08:06 +0000
committerAlp Toker <alp@nuanti.com>2014-06-22 10:08:06 +0000
commit2724ec37f312377e65c48d9b758e5c59df2c27a9 (patch)
tree684e080514b785ff19b7886ec4e01e6b8d600382 /clang/lib/Basic
parentf1ffc84f10bc0d99ae34e38b9fb8a3ceebf9a748 (diff)
downloadbcm5719-llvm-2724ec37f312377e65c48d9b758e5c59df2c27a9.tar.gz
bcm5719-llvm-2724ec37f312377e65c48d9b758e5c59df2c27a9.zip
TextDiagnosticPrinter: use the mapped level for remark flag computation
Custom diagnostics don't have a builtin class so this wouldn't have worked. Reduces surface area of remark-related changes. No test coverage. llvm-svn: 211462
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/DiagnosticIDs.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp
index 8fae207e8ea..c7a3e9704ac 100644
--- a/clang/lib/Basic/DiagnosticIDs.cpp
+++ b/clang/lib/Basic/DiagnosticIDs.cpp
@@ -353,11 +353,6 @@ bool DiagnosticIDs::isDefaultMappingAsError(unsigned DiagID) {
return GetDefaultDiagMapping(DiagID).getSeverity() == diag::Severity::Error;
}
-bool DiagnosticIDs::isRemark(unsigned DiagID) {
- return DiagID < diag::DIAG_UPPER_LIMIT &&
- getBuiltinDiagClass(DiagID) == CLASS_REMARK;
-}
-
/// getDescription - Given a diagnostic ID, return a description of the
/// issue.
StringRef DiagnosticIDs::getDescription(unsigned DiagID) const {
OpenPOWER on IntegriCloud