Skip to content

Commit

Permalink
Move createIRObjectFile to the IRObjectFile class and return the conc…
Browse files Browse the repository at this point in the history
…rete type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212301 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Jul 3, 2014
1 parent 040dd45 commit ab419e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions include/llvm/Object/IRObjectFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class IRObjectFile : public SymbolicFile {
static inline bool classof(const Binary *v) {
return v->isIR();
}

static ErrorOr<IRObjectFile *>
createIRObjectFile(std::unique_ptr<MemoryBuffer> Object,
LLVMContext &Context);
};
}
}
Expand Down
4 changes: 0 additions & 4 deletions include/llvm/Object/SymbolicFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ class SymbolicFile : public Binary {
}

// 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);
Expand Down
2 changes: 1 addition & 1 deletion lib/Object/IRObjectFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ab419e6

Please sign in to comment.