diff options
author | Adam Nemet <anemet@apple.com> | 2017-10-12 23:56:02 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2017-10-12 23:56:02 +0000 |
commit | 01104aee1a3e74e7ecddcfed9f1edfb4e2e99c25 (patch) | |
tree | 314994ad4fb8889ecf1f80d9f46ba26c5230252a /llvm/lib/CodeGen/MIRParser | |
parent | 0e8211ea57fb40fad12c583c05fd95734df906aa (diff) | |
download | bcm5719-llvm-01104aee1a3e74e7ecddcfed9f1edfb4e2e99c25.tar.gz bcm5719-llvm-01104aee1a3e74e7ecddcfed9f1edfb4e2e99c25.zip |
Add DK_Remark to SMDiagnostic
Swift uses SMDiagnostic for diagnostic messages. For
https://github.com/apple/swift/pull/12294, we need remark support.
I picked the color that clang uses to display them.
Differential Revision: https://reviews.llvm.org/D38865
llvm-svn: 315642
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIRParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp index db566963918..c91255f9592 100644 --- a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp @@ -214,6 +214,9 @@ void MIRParserImpl::reportDiagnostic(const SMDiagnostic &Diag) { case SourceMgr::DK_Note: Kind = DS_Note; break; + case SourceMgr::DK_Remark: + llvm_unreachable("remark unexpected"); + break; } Context.diagnose(DiagnosticInfoMIRParser(Kind, Diag)); } |