summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/LTO/LTO.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h
index ace632444a8..3a5b5eca909 100644
--- a/llvm/include/llvm/LTO/LTO.h
+++ b/llvm/include/llvm/LTO/LTO.h
@@ -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.
OpenPOWER on IntegriCloud