[llvm] [NFC][AsmPrinter] Refactor FrameIndexExprs as a std::set (PR #66433)

Scott Linder via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 12:39:06 PDT 2023


================
@@ -107,6 +107,9 @@ class DbgVariable;
 struct FrameIndexExpr {
   int FI;
   const DIExpression *Expr;
+
+  /// Operator enabling sorting based on fragment offset.
+  bool operator<(const FrameIndexExpr &Other) const;
----------------
slinder1 wrote:

Sounds good! I rolled the change to the other type here into this PR as it seems trivial and the PR process in GH doesn't let me "stack" it easily. Let me know if anyone prefers it go in separately!

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


More information about the llvm-commits mailing list