mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Object: Get rid of sys::Path, Triple, and cleanup namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -14,9 +14,10 @@
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/System/Path.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace object {
|
||||
using namespace llvm;
|
||||
using namespace object;
|
||||
|
||||
ObjectFile::ObjectFile(MemoryBuffer *Object)
|
||||
: MapFile(Object) {
|
||||
@ -60,9 +61,6 @@ ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) {
|
||||
}
|
||||
}
|
||||
|
||||
ObjectFile *ObjectFile::createObjectFile(const sys::Path &ObjectPath) {
|
||||
return createObjectFile(MemoryBuffer::getFile(ObjectPath.c_str()));
|
||||
ObjectFile *ObjectFile::createObjectFile(StringRef ObjectPath) {
|
||||
return createObjectFile(MemoryBuffer::getFile(ObjectPath));
|
||||
}
|
||||
|
||||
} // end namespace object
|
||||
} // end namespace llvm
|
||||
|
Reference in New Issue
Block a user