[llvm] r281289 - [lib/LTO] Expose getModule() in lto::InputFile.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 19:22:03 PDT 2016
Author: davide
Date: Mon Sep 12 21:22:02 2016
New Revision: 281289
URL: http://llvm.org/viewvc/llvm-project?rev=281289&view=rev
Log:
[lib/LTO] Expose getModule() in lto::InputFile.
lld will use this to get the datalayout string and emit a
diagnostic if empty.
Modified:
llvm/trunk/include/llvm/LTO/LTO.h
Modified: llvm/trunk/include/llvm/LTO/LTO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LTO/LTO.h?rev=281289&r1=281288&r2=281289&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LTO/LTO.h (original)
+++ llvm/trunk/include/llvm/LTO/LTO.h Mon Sep 12 21:22:02 2016
@@ -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.
More information about the llvm-commits
mailing list