[llvm] [NFC][TableGen] Adopt CodeGenHelpers in SubtargetEmitter (PR #163820)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 16 11:21:51 PDT 2025
================
@@ -141,7 +150,9 @@ class SubtargetEmitter : TargetFeaturesEmitter {
/// Emit some information about the SubtargetFeature as calls to a macro so
/// that they can be used from C++.
void SubtargetEmitter::emitSubtargetInfoMacroCalls(raw_ostream &OS) {
- OS << "\n#ifdef GET_SUBTARGETINFO_MACRO\n";
+ // Undef the GET_SUBTARGETINFO_MACRO macro and the end of the scope since its
----------------
topperc wrote:
```suggestion
// Undef the GET_SUBTARGETINFO_MACRO macro at the end of the scope since its
```
https://github.com/llvm/llvm-project/pull/163820
More information about the llvm-commits
mailing list