r193428 - I am about to change llvm::MemoryBuffer::getFile take take a Twine. Change
Rafael Espindola
rafael.espindola at gmail.com
Fri Oct 25 12:00:49 PDT 2013
Author: rafael
Date: Fri Oct 25 14:00:49 2013
New Revision: 193428
URL: http://llvm.org/viewvc/llvm-project?rev=193428&view=rev
Log:
I am about to change llvm::MemoryBuffer::getFile take take a Twine. Change
clang first so that the build still works.
Modified:
cfe/trunk/lib/Format/Format.cpp
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=193428&r1=193427&r2=193428&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Fri Oct 25 14:00:49 2013
@@ -1428,7 +1428,8 @@ FormatStyle getStyle(StringRef StyleName
if (IsFile) {
OwningPtr<llvm::MemoryBuffer> Text;
- if (llvm::error_code ec = llvm::MemoryBuffer::getFile(ConfigFile, Text)) {
+ if (llvm::error_code ec =
+ llvm::MemoryBuffer::getFile(ConfigFile.c_str(), Text)) {
llvm::errs() << ec.message() << "\n";
continue;
}
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=193428&r1=193427&r2=193428&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Fri Oct 25 14:00:49 2013
@@ -1780,7 +1780,7 @@ std::string CompilerInvocation::getModul
llvm::sys::path::append(systemVersionFile, "Library");
llvm::sys::path::append(systemVersionFile, "CoreServices");
llvm::sys::path::append(systemVersionFile, "SystemVersion.plist");
- if (!llvm::MemoryBuffer::getFile(systemVersionFile, buffer)) {
+ if (!llvm::MemoryBuffer::getFile(systemVersionFile.c_str(), buffer)) {
code = hash_combine(code, buffer.get()->getBuffer());
struct stat statBuf;
Modified: cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp?rev=193428&r1=193427&r2=193428&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp (original)
+++ cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp Fri Oct 25 14:00:49 2013
@@ -229,7 +229,8 @@ GlobalModuleIndex::readIndex(StringRef P
llvm::sys::path::append(IndexPath, IndexFileName);
llvm::OwningPtr<llvm::MemoryBuffer> Buffer;
- if (llvm::MemoryBuffer::getFile(IndexPath, Buffer) != llvm::errc::success)
+ if (llvm::MemoryBuffer::getFile(IndexPath.c_str(), Buffer) !=
+ llvm::errc::success)
return std::make_pair((GlobalModuleIndex *)0, EC_NotFound);
/// \brief The bitstream reader from which we'll read the AST file.
More information about the cfe-commits
mailing list