mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Don't ever call materializeAllPermanently during LTO.
To do this, change the representation of lazy loaded functions. The previous representation cannot differentiate between a function whose body has been removed and one whose body hasn't been read from the .bc file. That means that in order to drop a function, the entire body had to be read. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -469,9 +469,6 @@ public:
|
||||
/// Retrieves the GVMaterializer, if any, for this Module.
|
||||
GVMaterializer *getMaterializer() const { return Materializer.get(); }
|
||||
|
||||
/// True if the definition of GV has yet to be materializedfrom the
|
||||
/// GVMaterializer.
|
||||
bool isMaterializable(const GlobalValue *GV) const;
|
||||
/// Returns true if this GV was loaded from this Module's GVMaterializer and
|
||||
/// the GVMaterializer knows how to dematerialize the GV.
|
||||
bool isDematerializable(const GlobalValue *GV) const;
|
||||
|
Reference in New Issue
Block a user