[llvm] [NFC][TableGen] Code cleanup in CodeGenRegister (PR #137994)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 22:38:57 PDT 2025


================
@@ -185,7 +185,7 @@ class CodeGenRegister {
 
   CodeGenRegister(const Record *R, unsigned Enum);
 
-  StringRef getName() const;
+  StringRef getName() const { return TheDef->getName(); }
----------------
jurahul wrote:

Reinstated. I'm not sure if such asserts are really useful, but that's for another day to debate.

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


More information about the llvm-commits mailing list