[llvm] [NFC] Replace `GetPatFromTreePatternNode` with `llvm::to_string` (PR #123754)

Jonathan Thackray via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 08:31:16 PST 2025


================
@@ -22,6 +22,7 @@
 #include "llvm/ADT/TinyPtrVector.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Format.h"
+#include "llvm/Support/ScopedPrinter.h" // for llvm::to_string
----------------
jthackray wrote:

It's one of those small, utility-type functions, same with immediately enumToString() below. I'd say leave it there, unless there's a header file for collecting miscellaneous utils.

https://github.com/llvm/llvm-project/pull/123754


More information about the llvm-commits mailing list