diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-04-18 00:15:53 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-04-17 22:47:54 -0700 |
| commit | 21a6a1b0f2d7241594a9aa123e48cf2e3ebaccb9 (patch) | |
| tree | 106fe6c9dfc11e73b3b3f04e5cc43d93b3da4685 /src/codegen/llvm.zig | |
| parent | 187f0c1e262cbeb37d72c571381b5b94c1eb3a63 (diff) | |
| download | zig-21a6a1b0f2d7241594a9aa123e48cf2e3ebaccb9.tar.gz zig-21a6a1b0f2d7241594a9aa123e48cf2e3ebaccb9.zip | |
Sema: cap depth of value printing in type names
Certain types (notably, `std.ComptimeStringMap`) were resulting in excessively
long type names when instantiated, which in turn resulted in excessively long
symbol names. These are problematic for two reasons:
* Symbol names are sometimes read by humans -- they ought to be readable.
* Some other applications (looking at you, xcode) trip on very long symbol names.
To work around this for now, we cap the depth of value printing at 1, as opposed
to the normal 3. This doesn't guarantee anything -- there could still be, for
instance, an incredibly long aggregate -- but it works around the issue in
practice for the time being.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
