[PATCH] D158675: [NFC][AsmPrinter] Refactor DbgVariable as a std::variant
Felipe de Azevedo Piovezan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 25 10:59:06 PDT 2023
fdeazeve accepted this revision.
fdeazeve added a comment.
This revision is now accepted and ready to land.
Everything looks good to me, this is much cleaner! On my first encounter with this class, it took me a long time to decipher what was going on, and the variant design is way more expressive.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h:149
+struct MMILoc {
+ mutable SmallVector<FrameIndexExpr, 1> FrameIndexExprs;
+};
----------------
Not for this patch, but it really bothers me that this is mutable. The original rationale must have been to allow sorting when we call the "get" method, but still...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158675/new/
https://reviews.llvm.org/D158675
More information about the llvm-commits
mailing list