[libcxx-commits] [libcxx] [libcxx] Support ABI symbol sizes on macOS (PR #75623)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 7 22:11:43 PST 2024
================
@@ -123,6 +123,40 @@ def adjust_mangled_name(name):
return name[1:]
+def extract_object_sizes_from_map(mapfilename: str):
+ maplines = []
+ result = {}
+
+ with open(mapfilename, "r") as f:
+ maplines = f.readlines()
+
+ if len(maplines) == 0:
+ return {}
+
+ # Yes, this is fragile.
----------------
ldionne wrote:
Does this only work with a mapfile generated on Apple platforms, or is that format cross-platform? I haven't played around with mapfiles much in the past, so I'm not very familiar with those.
https://github.com/llvm/llvm-project/pull/75623
More information about the libcxx-commits
mailing list