summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-04-22 19:56:49 +0000
committerDiego Novillo <dnovillo@google.com>2014-04-22 19:56:49 +0000
commit0436233a662589d5e8c95fe395a0cfa8addd6cbf (patch)
tree9aad1257860a569e49c8c600319e2636ff7a454a /lib/CodeGen/CodeGenAction.cpp
parent53326f980c7255d89618c1a341868c9514efc694 (diff)
downloadclang-0436233a662589d5e8c95fe395a0cfa8addd6cbf.tar.gz
clang-0436233a662589d5e8c95fe395a0cfa8addd6cbf.tar.bz2
clang-0436233a662589d5e8c95fe395a0cfa8addd6cbf.tar.xz
Use a manipulator to add a value to the current diagnostic flag.
Summary: This addresses the feedback to http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140421/103598.html Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3453 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--lib/CodeGen/CodeGenAction.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp
index 5952e671b5..e1e102fc23 100644
--- a/lib/CodeGen/CodeGenAction.cpp
+++ b/lib/CodeGen/CodeGenAction.cpp
@@ -404,9 +404,8 @@ void BackendConsumer::OptimizationRemarkHandler(
Loc = SourceMgr.translateFileLineCol(FileMgr.getFile(Filename), Line,
Column);
}
- Diags.Report(Loc, diag::remark_fe_backend_optimization_remark,
- D.getPassName())
- << D.getMsg().str();
+ Diags.Report(Loc, diag::remark_fe_backend_optimization_remark)
+ << AddFlagValue(D.getPassName()) << D.getMsg().str();
if (Line == 0)
// If we could not extract a source location for the diagnostic,