mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Revert the last two commits in the series. r132911, r132912.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132913 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -21,8 +21,18 @@
|
||||
using namespace llvm;
|
||||
using namespace object;
|
||||
|
||||
ObjectFile::ObjectFile(unsigned int Type, MemoryBuffer *source, error_code &ec)
|
||||
: Binary(Type, source) {
|
||||
ObjectFile::ObjectFile(MemoryBuffer *Object)
|
||||
: MapFile(Object) {
|
||||
assert(MapFile && "Must be a valid MemoryBuffer!");
|
||||
base = reinterpret_cast<const uint8_t *>(MapFile->getBufferStart());
|
||||
}
|
||||
|
||||
ObjectFile::~ObjectFile() {
|
||||
delete MapFile;
|
||||
}
|
||||
|
||||
StringRef ObjectFile::getFilename() const {
|
||||
return MapFile->getBufferIdentifier();
|
||||
}
|
||||
|
||||
ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) {
|
||||
|
Reference in New Issue
Block a user