Factor code out of APInt to form a isUIntN helper function.
[oota-llvm.git] / include / llvm / Support / CrashRecoveryContext.h
index 45a43fa19502f5d4b23c389a2fdbf5adf9f20ea2..d66609fddfec2e0d136df1e91360627153c89826 100644 (file)
@@ -53,6 +53,10 @@ public:
   /// \brief Disable crash recovery.
   static void Disable();
 
+  /// \brief Return the active context, if the code is currently executing in a
+  /// thread which is in a protected context.
+  static CrashRecoveryContext *GetCurrent();
+
   /// \brief Execute the provide callback function (with the given arguments) in
   /// a protected context.
   ///