diff options
author | Diego Novillo <dnovillo@google.com> | 2014-04-22 19:56:49 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2014-04-22 19:56:49 +0000 |
commit | b344224949c3de170b9e21be97deba32b72a7f67 (patch) | |
tree | 4da4f8499c692ba193ce91107198d3f32cb01193 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 71a26346d3884fa96295153321c7f7e9d0d17aef (diff) | |
download | bcm5719-llvm-b344224949c3de170b9e21be97deba32b72a7f67.tar.gz bcm5719-llvm-b344224949c3de170b9e21be97deba32b72a7f67.zip |
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
llvm-svn: 206920
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 5952e671b5b..e1e102fc230 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/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, |