mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Move createIRObjectFile to the IRObjectFile class and return the concrete type.
llvm-svn: 212301
This commit is contained in:
parent
9a23698203
commit
228a05428e
@ -42,6 +42,10 @@ public:
|
||||
static inline bool classof(const Binary *v) {
|
||||
return v->isIR();
|
||||
}
|
||||
|
||||
static ErrorOr<IRObjectFile *>
|
||||
createIRObjectFile(std::unique_ptr<MemoryBuffer> Object,
|
||||
LLVMContext &Context);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -142,10 +142,6 @@ public:
|
||||
}
|
||||
|
||||
// construction aux.
|
||||
static ErrorOr<SymbolicFile *>
|
||||
createIRObjectFile(std::unique_ptr<MemoryBuffer> Object,
|
||||
LLVMContext &Context);
|
||||
|
||||
static ErrorOr<SymbolicFile *>
|
||||
createSymbolicFile(std::unique_ptr<MemoryBuffer> &Object,
|
||||
sys::fs::file_magic Type, LLVMContext *Context);
|
||||
|
@ -263,7 +263,7 @@ basic_symbol_iterator IRObjectFile::symbol_end_impl() const {
|
||||
return basic_symbol_iterator(BasicSymbolRef(Ret, this));
|
||||
}
|
||||
|
||||
ErrorOr<SymbolicFile *> llvm::object::SymbolicFile::createIRObjectFile(
|
||||
ErrorOr<IRObjectFile *> llvm::object::IRObjectFile::createIRObjectFile(
|
||||
std::unique_ptr<MemoryBuffer> Object, LLVMContext &Context) {
|
||||
std::error_code EC;
|
||||
std::unique_ptr<IRObjectFile> Ret(
|
||||
|
Loading…
x
Reference in New Issue
Block a user