Index: llvm/trunk/include/llvm/LTO/LTO.h =================================================================== --- llvm/trunk/include/llvm/LTO/LTO.h +++ llvm/trunk/include/llvm/LTO/LTO.h @@ -227,6 +227,10 @@ symbol_iterator(Obj->symbol_end())); } + StringRef getDataLayoutStr() const { + return Obj->getModule().getDataLayoutStr(); + } + StringRef getSourceFileName() const { return Obj->getModule().getSourceFileName(); } @@ -234,10 +238,6 @@ MemoryBufferRef getMemoryBufferRef() const { return Obj->getMemoryBufferRef(); } - - Module &getModule() const { - return Obj->getModule(); - } }; /// A ThinBackend defines what happens after the thin-link phase during ThinLTO.