[PATCH] D24494: [LTO] Export DataLayoutStr instead of the whole module
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 23:37:53 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL281296: [LTO] Only expose the dataLayout string instead of the whole module. (authored by davide).
Changed prior to commit:
https://reviews.llvm.org/D24494?vs=71109&id=71112#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24494
Files:
llvm/trunk/include/llvm/LTO/LTO.h
Index: llvm/trunk/include/llvm/LTO/LTO.h
===================================================================
--- llvm/trunk/include/llvm/LTO/LTO.h
+++ llvm/trunk/include/llvm/LTO/LTO.h
@@ -227,17 +227,17 @@
symbol_iterator(Obj->symbol_end()));
}
+ StringRef getDataLayoutStr() const {
+ return Obj->getModule().getDataLayoutStr();
+ }
+
StringRef getSourceFileName() const {
return Obj->getModule().getSourceFileName();
}
MemoryBufferRef getMemoryBufferRef() const {
return Obj->getMemoryBufferRef();
}
-
- Module &getModule() const {
- return Obj->getModule();
- }
};
/// A ThinBackend defines what happens after the thin-link phase during ThinLTO.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24494.71112.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160913/2afa2a67/attachment.bin>
More information about the llvm-commits
mailing list