Track clang changes from r210764
authorAlp Toker <alp@nuanti.com>
Thu, 12 Jun 2014 11:14:32 +0000 (11:14 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 12 Jun 2014 11:14:32 +0000 (11:14 +0000)
llvm-svn: 210765

lldb/source/Expression/ClangExpressionParser.cpp

index afe66e3..37ebfcc 100644 (file)
@@ -242,9 +242,11 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
         m_compiler->getCodeGenOpts().setDebugInfo(CodeGenOptions::NoDebugInfo);
     
     // Disable some warnings.
-    m_compiler->getDiagnostics().setDiagnosticGroupMapping("unused-value", clang::diag::MAP_IGNORE, SourceLocation());
-    m_compiler->getDiagnostics().setDiagnosticGroupMapping("odr", clang::diag::MAP_IGNORE, SourceLocation());
-    
+    m_compiler->getDiagnostics().setSeverityForGroup(
+        "unused-value", clang::diag::Severity::Ignored, SourceLocation());
+    m_compiler->getDiagnostics().setSeverityForGroup(
+        "odr", clang::diag::Severity::Ignored, SourceLocation());
+
     // Inform the target of the language options
     //
     // FIXME: We shouldn't need to do this, the target should be immutable once