[Lldb-commits] [PATCH] D144027: [NFC][IR] Make Module::getGlobalList() private

Arthur Eubanks via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 14 09:38:07 PST 2023


aeubanks accepted this revision.
aeubanks added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/unittests/IR/ModuleTest.cpp:49
     EXPECT_FALSE(std::is_sorted(M.global_begin(), M.global_end(), compare));
-    M.getGlobalList().sort(compare);
-    EXPECT_TRUE(std::is_sorted(M.global_begin(), M.global_end(), compare));
+    // I removed this because it is testing whether ilist.sort() works, which is
+    // not Module-specific. This requires access to the full GlobalList for no
----------------
can just delete the commented out lines and add the reasoning behind deleting this either as a phabricator comment or in the commit description


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144027/new/

https://reviews.llvm.org/D144027



More information about the lldb-commits mailing list