mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
Unbreak build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36559 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
21beed669e
commit
9bc406019e
@ -14,6 +14,7 @@
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/System/MappedFile.h"
|
||||
#include "llvm/System/Process.h"
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cerrno>
|
||||
@ -158,7 +159,7 @@ MemoryBufferMMapFile::~MemoryBufferMMapFile() {
|
||||
|
||||
MemoryBuffer *MemoryBuffer::getFile(const char *FilenameStart, unsigned FnSize,
|
||||
int64_t FileSize) {
|
||||
sys::PathWithStatus P(FilenameStart, FnSize);
|
||||
sys::PathWithStatus P(std::string(FilenameStart, FnSize));
|
||||
#if 1
|
||||
return new MemoryBufferMMapFile(P);
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user