diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-03-19 20:27:15 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-03-19 20:27:15 +0000 |
commit | b35a896e072ff46c38905419b7f55aaccdb1d702 (patch) | |
tree | 704310e3e3dab82ed34832f89af0823e27a51614 /include/llvm/Object/Binary.h | |
parent | 2d7ea04e2822bbe5faad0eefceb7a300ea01224e (diff) |
[Object/COFF]: Expose getSectionName.
Also add some documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/Binary.h')
-rw-r--r-- | include/llvm/Object/Binary.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h index 81cdd32a73..77a08d597c 100644 --- a/include/llvm/Object/Binary.h +++ b/include/llvm/Object/Binary.h @@ -88,7 +88,14 @@ public: } }; +/// @brief Create a Binary from Source, autodetecting the file type. +/// +/// @param Source The data to create the Binary from. Ownership is transfered +/// to Result if successful. If an error is returned, Source is destroyed +/// by createBinary before returning. +/// @param Result A pointer to the resulting Binary if no error occured. error_code createBinary(MemoryBuffer *Source, OwningPtr<Binary> &Result); + error_code createBinary(StringRef Path, OwningPtr<Binary> &Result); } |