projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a81b27
)
[lib/LTO] Expose getModule() in lto::InputFile.
author
Davide Italiano
<davide@freebsd.org>
Tue, 13 Sep 2016 02:22:02 +0000
(
02:22
+0000)
committer
Davide 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.
llvm-svn: 281289
llvm/include/llvm/LTO/LTO.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/LTO/LTO.h
b/llvm/include/llvm/LTO/LTO.h
index
5b684bd
..
ace6324
100644
(file)
--- 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.