diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-08 22:40:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-08 22:40:47 +0000 |
commit | b4cc031a3e1306fea74c9211d50c5cde6d9a8cd5 (patch) | |
tree | 80f2d7365cd402e9040ed85abf3b06a17d59f423 /tools/lto/LTOModule.h | |
parent | 971b83b67a9812556cdb97bb58aa96fb37af458d (diff) | |
download | llvm-b4cc031a3e1306fea74c9211d50c5cde6d9a8cd5.tar.gz llvm-b4cc031a3e1306fea74c9211d50c5cde6d9a8cd5.tar.bz2 llvm-b4cc031a3e1306fea74c9211d50c5cde6d9a8cd5.tar.xz |
Don't open the file again in the gold plugin. To be able to do this, update
MemoryBuffer::getOpenFile to not close the file descriptor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/LTOModule.h')
-rw-r--r-- | tools/lto/LTOModule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lto/LTOModule.h b/tools/lto/LTOModule.h index a19acc0d73..1794d81c0a 100644 --- a/tools/lto/LTOModule.h +++ b/tools/lto/LTOModule.h @@ -51,6 +51,9 @@ struct LTOModule { static LTOModule* makeLTOModule(const char* path, std::string& errMsg); + static LTOModule* makeLTOModule(int fd, const char *path, + off_t size, + std::string& errMsg); static LTOModule* makeLTOModule(const void* mem, size_t length, std::string& errMsg); |