r283039 - Use StringRef in Registry API (NFC)
Mehdi Amini via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 1 08:44:54 PDT 2016
Author: mehdi_amini
Date: Sat Oct 1 10:44:54 2016
New Revision: 283039
URL: http://llvm.org/viewvc/llvm-project?rev=283039&view=rev
Log:
Use StringRef in Registry API (NFC)
Modified:
cfe/trunk/lib/Tooling/CompilationDatabase.cpp
Modified: cfe/trunk/lib/Tooling/CompilationDatabase.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/CompilationDatabase.cpp?rev=283039&r1=283038&r2=283039&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/CompilationDatabase.cpp (original)
+++ cfe/trunk/lib/Tooling/CompilationDatabase.cpp Sat Oct 1 10:44:54 2016
@@ -49,7 +49,7 @@ CompilationDatabase::loadFromDirectory(S
if (std::unique_ptr<CompilationDatabase> DB =
Plugin->loadFromDirectory(BuildDirectory, DatabaseErrorMessage))
return DB;
- ErrorStream << It->getName() << ": " << DatabaseErrorMessage << "\n";
+ ErrorStream << It->getName().data() << ": " << DatabaseErrorMessage << "\n";
}
ErrorMessage = ErrorStream.str();
return nullptr;
More information about the cfe-commits
mailing list