diff options
Diffstat (limited to 'contrib/llvm/include/llvm/IR/ModuleSlotTracker.h')
-rw-r--r-- | contrib/llvm/include/llvm/IR/ModuleSlotTracker.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/llvm/include/llvm/IR/ModuleSlotTracker.h b/contrib/llvm/include/llvm/IR/ModuleSlotTracker.h index 49730a6..eb26fba 100644 --- a/contrib/llvm/include/llvm/IR/ModuleSlotTracker.h +++ b/contrib/llvm/include/llvm/IR/ModuleSlotTracker.h @@ -30,6 +30,8 @@ class Value; class ModuleSlotTracker { /// Storage for a slot tracker. std::unique_ptr<SlotTracker> MachineStorage; + bool ShouldCreateStorage = false; + bool ShouldInitializeAllMetadata = false; const Module *M = nullptr; const Function *F = nullptr; @@ -53,7 +55,9 @@ public: /// Destructor to clean up storage. ~ModuleSlotTracker(); - SlotTracker *getMachine() const { return Machine; } + /// Lazily creates a slot tracker. + SlotTracker *getMachine(); + const Module *getModule() const { return M; } const Function *getCurrentFunction() const { return F; } |