[llvm] [Tablegen] Add keywork `dump`. (PR #68793)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 19:55:50 PDT 2023


================
@@ -170,4 +170,11 @@ void CheckAssert(SMLoc Loc, Init *Condition, Init *Message) {
   }
 }
 
+void CheckDump(SMLoc Loc, Init *Message) {
+  if (auto *MessageInit = dyn_cast<StringInit>(Message))
+    PrintNote(MessageInit->getValue());
----------------
wangpc-pp wrote:

```suggestion
    PrintNote(Loc, MessageInit->getValue());
```
Use `Loc` here?

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


More information about the llvm-commits mailing list