diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-22 00:14:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-22 00:14:49 +0000 |
commit | 825fc31bd3a6e7604c4b69f28f32e90b5a882289 (patch) | |
tree | 2026366f101c87f4560963d62ecc0138540f31f9 /include | |
parent | 6220c8f960fe287efcfc27f46ab6ad48e5b3c5d2 (diff) |
Change createObjectFile to return an ErrorOr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ObjectFile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index 5ffa4293fbb..4aa1e066763 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -376,8 +376,8 @@ public: /// @param ObjectPath The path to the object file. ObjectPath.isObject must /// return true. /// @brief Create ObjectFile from path. - static ObjectFile *createObjectFile(StringRef ObjectPath); - static ObjectFile *createObjectFile(MemoryBuffer *Object); + static ErrorOr<ObjectFile *> createObjectFile(StringRef ObjectPath); + static ErrorOr<ObjectFile *> createObjectFile(MemoryBuffer *Object); static inline bool classof(const Binary *v) { return v->isObject(); |