OSDN Git Service

[lib/LTO] Expose getModule() in lto::InputFile.
authorDavide Italiano <davide@freebsd.org>
Tue, 13 Sep 2016 02:22:02 +0000 (02:22 +0000)
committerDavide Italiano <davide@freebsd.org>
Tue, 13 Sep 2016 02:22:02 +0000 (02:22 +0000)
lld will use this to get the datalayout string and emit a
diagnostic if empty.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281289 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/LTO/LTO.h

index 5b684bd..ace6324 100644 (file)
@@ -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.