From: Davide Italiano Date: Tue, 13 Sep 2016 02:22:02 +0000 (+0000) Subject: [lib/LTO] Expose getModule() in lto::InputFile. X-Git-Tag: llvmorg-4.0.0-rc1~9990 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b69efb9e8da31ed6713738966a0a0cce40c19873;p=platform%2Fupstream%2Fllvm.git [lib/LTO] Expose getModule() in lto::InputFile. lld will use this to get the datalayout string and emit a diagnostic if empty. llvm-svn: 281289 --- diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h index 5b684bd..ace6324 100644 --- a/llvm/include/llvm/LTO/LTO.h +++ b/llvm/include/llvm/LTO/LTO.h @@ -234,6 +234,10 @@ public: MemoryBufferRef getMemoryBufferRef() const { return Obj->getMemoryBufferRef(); } + + Module &getModule() const { + return Obj->getModule(); + } }; /// A ThinBackend defines what happens after the thin-link phase during ThinLTO.