diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:00:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:00:49 +0000 |
commit | 1a3605cdbe807b2ffcc985b35e654bfb5a18cd40 (patch) | |
tree | 5e0179a875882983c6aaf9eb59a8f8c69188cbc8 /clang | |
parent | 65cc969f5038d82c65c7f8cbaee30c8481971e38 (diff) | |
download | bcm5719-llvm-1a3605cdbe807b2ffcc985b35e654bfb5a18cd40.tar.gz bcm5719-llvm-1a3605cdbe807b2ffcc985b35e654bfb5a18cd40.zip |
I am about to change llvm::MemoryBuffer::getFile take take a Twine. Change
clang first so that the build still works.
llvm-svn: 193428
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Format/Format.cpp | 3 | ||||
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Serialization/GlobalModuleIndex.cpp | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index fd84454d907..54d0b1f5e2a 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1428,7 +1428,8 @@ FormatStyle getStyle(StringRef StyleName, StringRef FileName) { 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; } diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 3274d314678..2f6407109d8 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1780,7 +1780,7 @@ std::string CompilerInvocation::getModuleHash() const { 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; diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index 675804efd16..fb647b0be9b 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -229,7 +229,8 @@ GlobalModuleIndex::readIndex(StringRef Path) { 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. |