[llvm] b36e762 - [llvm][NFC] Remove a couple unused member functions in `CrashRecoveryContext` (#162246)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 07:41:34 PDT 2025


Author: Victor Chernyakin
Date: 2025-10-07T07:41:31-07:00
New Revision: b36e762cdb2e90e29f65c7abffc00541addfed3f

URL: https://github.com/llvm/llvm-project/commit/b36e762cdb2e90e29f65c7abffc00541addfed3f
DIFF: https://github.com/llvm/llvm-project/commit/b36e762cdb2e90e29f65c7abffc00541addfed3f.diff

LOG: [llvm][NFC] Remove a couple unused member functions in `CrashRecoveryContext` (#162246)

They're not used anywhere, and don't really offer anything beyond the
functions they wrap.

Added: 
    

Modified: 
    llvm/include/llvm/Support/CrashRecoveryContext.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/CrashRecoveryContext.h b/llvm/include/llvm/Support/CrashRecoveryContext.h
index 773de899acb38..ffee81dd24587 100644
--- a/llvm/include/llvm/Support/CrashRecoveryContext.h
+++ b/llvm/include/llvm/Support/CrashRecoveryContext.h
@@ -80,9 +80,6 @@ class CrashRecoveryContext {
   /// make as little assumptions as possible about the program state when
   /// RunSafely has returned false.
   LLVM_ABI bool RunSafely(function_ref<void()> Fn);
-  bool RunSafely(void (*Fn)(void*), void *UserData) {
-    return RunSafely([&]() { Fn(UserData); });
-  }
 
   /// Execute the provide callback function (with the given arguments) in
   /// a protected context which is run in another thread (optionally with a
@@ -94,10 +91,6 @@ class CrashRecoveryContext {
   /// propagated to the new thread as well.
   LLVM_ABI bool RunSafelyOnThread(function_ref<void()>,
                                   unsigned RequestedStackSize = 0);
-  bool RunSafelyOnThread(void (*Fn)(void*), void *UserData,
-                         unsigned RequestedStackSize = 0) {
-    return RunSafelyOnThread([&]() { Fn(UserData); }, RequestedStackSize);
-  }
 
   LLVM_ABI bool RunSafelyOnNewStack(function_ref<void()>,
                                     unsigned RequestedStackSize = 0);


        


More information about the llvm-commits mailing list