[llvm] [llvm][mustache] Simplify debug logging (PR #159193)
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 30 23:11:17 PDT 2025
================
@@ -329,6 +329,36 @@ struct Tag {
size_t StartPosition = StringRef::npos;
};
+static const char *tagKindToString(Tag::Kind K) {
----------------
mikaelholmen wrote:
Hi @ilovepi ,
These two new functions are unused in builds without asserts:
```
../lib/Support/Mustache.cpp:332:20: error: unused function 'tagKindToString' [-Werror,-Wunused-function]
332 | static const char *tagKindToString(Tag::Kind K) {
| ^~~~~~~~~~~~~~~
../lib/Support/Mustache.cpp:344:20: error: unused function 'jsonKindToString' [-Werror,-Wunused-function]
344 | static const char *jsonKindToString(json::Value::Kind K) {
| ^~~~~~~~~~~~~~~~
2 errors generated.
```
https://github.com/llvm/llvm-project/pull/159193
More information about the llvm-commits
mailing list