[llvm] [llvm-cxxfilt] Add --quote option to quote demangled function names (PR #111871)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 00:12:27 PDT 2024
================
@@ -64,7 +66,15 @@ static void error(const Twine &Message) {
exit(1);
}
-static std::string demangle(const std::string &Mangled) {
+// Quote Undecorated with "" if asked for and not already followed by a '"'
+static std::string optionalQuote(std::string Undecorated,
----------------
jh7370 wrote:
I think it's likely this function call will get optimized away, so it's somewhat moot, and we should just do what requires less mental logistics by readers of the code (which typically would not expect a string to be passed by value).
https://github.com/llvm/llvm-project/pull/111871
More information about the llvm-commits
mailing list