diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/IR/Module.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/llvm/IR/Module.h b/include/llvm/IR/Module.h index 500e3a50dee..a405f7df3ef 100644 --- a/include/llvm/IR/Module.h +++ b/include/llvm/IR/Module.h @@ -256,9 +256,16 @@ public: /// versions when the pass does not change. std::unique_ptr<RandomNumberGenerator> createRNG(const Pass* P) const; -/// @} -/// @name Module Level Mutators -/// @{ + /// Return true if size-info optimization remark is enabled, false + /// otherwise. + bool shouldEmitInstrCountChangedRemark() { + return getContext().getDiagHandlerPtr()->isAnalysisRemarkEnabled( + "size-info"); + } + + /// @} + /// @name Module Level Mutators + /// @{ /// Set the module identifier. void setModuleIdentifier(StringRef ID) { ModuleID = ID; } |