emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/beardbolt b6958c3e0a 277/323: * beardbolt.el: preserve-


From: ELPA Syncer
Subject: [elpa] externals/beardbolt b6958c3e0a 277/323: * beardbolt.el: preserve-library-functions -> preserve-weak-symbols
Date: Thu, 9 Mar 2023 10:58:38 -0500 (EST)

branch: externals/beardbolt
commit b6958c3e0af9b9be7c7563465b33d52daf297bca
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    * beardbolt.el: preserve-library-functions -> preserve-weak-symbols
    
    Since that's what it is at the moment.
---
 README.md                    | 1 -
 beardbolt.el                 | 8 ++++----
 starters/slow-to-process.cpp | 2 +-
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index e722fd1745..3c3af416b4 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,6 @@ corresponds to, and vice versa.
 - Faster (2x) and more responsive (TODO: show benchmarks)
 - Less buggy (TODO: show actual rmsbolt problems)
 - Has rainbows.
-- Has `beardbolt-preserve-library-functions` switch like godbolt.
 - Simpler code (half the LOC)
 
 ### Installation
diff --git a/beardbolt.el b/beardbolt.el
index 2c3a3ea719..c41837d03f 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -78,7 +78,7 @@ If you are not on x86, you most likely want to set this to 
nil."
   :type 'boolean
   :safe 'booleanp
   :group 'beardbolt)
-(defcustom bb-preserve-library-functions t
+(defcustom bb-preserve-weak-symbols t
   "Whether to preserve library function."
   :type 'boolean
   :safe 'booleanp
@@ -421,7 +421,7 @@ Returns a list (SPEC ...) where SPEC looks like (WHAT FN 
CMD)."
         demangle-ovs
         (preserve-comments (buffer-local-value 'bb-preserve-comments 
bb--source-buffer))
         (preserve-labels (buffer-local-value 'bb-preserve-labels 
bb--source-buffer))
-        (preserve-library-functions (buffer-local-value 
'bb-preserve-library-functions bb--source-buffer)))
+        (preserve-weak-symbols (buffer-local-value 'bb-preserve-weak-symbols 
bb--source-buffer)))
     (cl-flet ((schedule-demangling-maybe (from to)
                 (when (and (eq (char-after from) ?_)
                            (not (bb--demangle-quick from to)))
@@ -459,7 +459,7 @@ Returns a list (SPEC ...) where SPEC looks like (WHAT FN 
CMD)."
         ((and (not preserve-comments) (match bb-comment-only)) :kill)
         ((match bb-defines-global bb-defines-function-or-object)
          (intern (match-string 1) globals))
-        ((and (not preserve-library-functions) (match bb-defines-weak))
+        ((and (not preserve-weak-symbols) (match bb-defines-weak))
          (intern (match-string 1) weaks))
         ((match bb-source-file-hint)
          (puthash (string-to-number (match-string 1))
@@ -481,7 +481,7 @@ Returns a list (SPEC ...) where SPEC looks like (WHAT FN 
CMD)."
         ((match bb-label-start)
          (cond
           ((bb--reachable-p (match-string 1) globals label-graph synonyms
-                            (unless preserve-library-functions weaks))
+                            (unless preserve-weak-symbols weaks))
            (setq reachable-label (match-string 1))
            (schedule-demangling-maybe (match-beginning 0) (match-end 0))
            :preserve)
diff --git a/starters/slow-to-process.cpp b/starters/slow-to-process.cpp
index cb33f378bb..4434e371cb 100644
--- a/starters/slow-to-process.cpp
+++ b/starters/slow-to-process.cpp
@@ -1091,7 +1091,7 @@ template class String<int>;
 // beardbolt-command: "g++ -std=c++17 -O3"
 // rmsbolt-command: "g++ -std=c++17 -O3"
 // beardbolt-disassemble: nil
-// beardbolt-preserve-library-functions: t
+// beardbolt-preserve-weak-symbols: t
 // rmsbolt-filter-directives: t
 // beardbolt-asm-format: att
 // rmsbolt-asm-format: "att"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]