[llvm] r281296 - [LTO] Only expose the dataLayout string instead of the whole module.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 23:29:18 PDT 2016
Author: davide
Date: Tue Sep 13 01:29:17 2016
New Revision: 281296
URL: http://llvm.org/viewvc/llvm-project?rev=281296&view=rev
Log:
[LTO] Only expose the dataLayout string instead of the whole module.
Differential Revision: https://reviews.llvm.org/D24494
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=281296&r1=281295&r2=281296&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LTO/LTO.h (original)
+++ llvm/trunk/include/llvm/LTO/LTO.h Tue Sep 13 01:29:17 2016
@@ -227,6 +227,10 @@ public:
symbol_iterator(Obj->symbol_end()));
}
+ StringRef getDataLayoutStr() const {
+ return Obj->getModule().getDataLayoutStr();
+ }
+
StringRef getSourceFileName() const {
return Obj->getModule().getSourceFileName();
}
@@ -234,10 +238,6 @@ 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