[stack protector] Make the StackProtector pass respect ssp-buffer-size.
[oota-llvm.git] / lib / IR / LLVMContextImpl.h
index dc77d291f40c040d7940438daaa8a32e18a615d6..48b351136765f1b33486a54fbd88cf12fb7509b3 100644 (file)
@@ -368,6 +368,10 @@ public:
   typedef DenseMap<const Function *, ReturnInst *> PrefixDataMapTy;
   PrefixDataMapTy PrefixDataMap;
 
+  /// \brief Return true if the given pass name should emit optimization
+  /// remarks.
+  bool optimizationRemarksEnabledFor(const char *PassName) const;
+
   int getOrAddScopeRecordIdxEntry(MDNode *N, int ExistingIdx);
   int getOrAddScopeInlinedAtIdxEntry(MDNode *Scope, MDNode *IA,int ExistingIdx);