mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Support/system_error.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
#include "llvm/Support/Host.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
@@ -464,8 +465,9 @@ static void ExpandResponseFiles(unsigned argc, char** argv,
|
||||
if (FileStat && FileStat->getSize() != 0) {
|
||||
|
||||
// Mmap the response file into memory.
|
||||
error_code ec;
|
||||
OwningPtr<MemoryBuffer>
|
||||
respFilePtr(MemoryBuffer::getFile(respFile.c_str()));
|
||||
respFilePtr(MemoryBuffer::getFile(respFile.c_str(), ec));
|
||||
|
||||
// If we could open the file, parse its contents, otherwise
|
||||
// pass the @file option verbatim.
|
||||
|
Reference in New Issue
Block a user