mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
tools/lto/LTOModule.cpp: Eliminate an unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3bc729c3b3
commit
0e8d588948
@ -117,7 +117,6 @@ LTOModule *LTOModule::makeLTOModule(int fd, const char *path,
|
||||
/// makeBuffer - Create a MemoryBuffer from a memory range.
|
||||
MemoryBuffer *LTOModule::makeBuffer(const void *mem, size_t length) {
|
||||
const char *startPtr = (char*)mem;
|
||||
const char *endPtr = startPtr+length;
|
||||
return MemoryBuffer::getMemBuffer(StringRef(startPtr, length), "", false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user