Skip to content

Commit

Permalink
[lib/LTO] Expose getModule() in lto::InputFile.
Browse files Browse the repository at this point in the history
lld will use this to get the datalayout string and emit a
diagnostic if empty.

llvm-svn: 281289
  • Loading branch information
dcci committed Sep 13, 2016
1 parent 1a81b27 commit b69efb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/LTO/LTO.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ class InputFile {
MemoryBufferRef getMemoryBufferRef() const {
return Obj->getMemoryBufferRef();
}

Module &getModule() const {
return Obj->getModule();
}
};

/// A ThinBackend defines what happens after the thin-link phase during ThinLTO.
Expand Down

0 comments on commit b69efb9

Please sign in to comment.