r283004 - Use StringRef in Pass/PassManager APIs (NFC)
Mehdi Amini via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 30 19:57:00 PDT 2016
Author: mehdi_amini
Date: Fri Sep 30 21:56:57 2016
New Revision: 283004
URL: http://llvm.org/viewvc/llvm-project?rev=283004&view=rev
Log:
Use StringRef in Pass/PassManager APIs (NFC)
Modified:
cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=283004&r1=283003&r2=283004&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Fri Sep 30 21:56:57 2016
@@ -517,7 +517,7 @@ void BackendConsumer::EmitOptimizationMe
MsgStream << " (hotness: " << *D.getHotness() << ")";
Diags.Report(Loc, DiagID)
- << AddFlagValue(D.getPassName() ? D.getPassName() : "")
+ << AddFlagValue(D.getPassName())
<< MsgStream.str();
if (BadDebugInfo)
More information about the cfe-commits
mailing list