mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[LTO] Only expose the dataLayout string instead of the whole module.
Differential Revision: https://reviews.llvm.org/D24494 llvm-svn: 281296
This commit is contained in:
parent
0b53289683
commit
a99c64a2ce
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user