diff options
author | Fangrui Song <i@maskray.me> | 2020-12-31 00:27:11 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-12-31 00:27:11 -0800 |
commit | fd739804e0591468762eb87488a497a3f7d4afb0 (patch) | |
tree | a3e0747ed63a57f668c0332782ccdfbe03cf2bef /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | f2cc2669a0d91994c93f2e9708e137484081a7c1 (diff) | |
download | llvm-fd739804e0591468762eb87488a497a3f7d4afb0.zip llvm-fd739804e0591468762eb87488a497a3f7d4afb0.tar.gz llvm-fd739804e0591468762eb87488a497a3f7d4afb0.tar.bz2 |
[test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences
For a default visibility external linkage definition, dso_local is set for ELF
-fno-pic/-fpie and COFF and Mach-O. Since default clang -cc1 for ELF is similar
to -fpic ("PIC Level" is not set), this nuance causes unneeded binary format differences.
To make emitted IR similar, ELF -cc1 -fpic will default to -fno-semantic-interposition,
which sets dso_local for default visibility external linkage definitions.
To make this flip smooth and enable future (dso_local as definition default),
this patch replaces (function) `define ` with `define{{.*}} `,
(variable/constant/alias) `= ` with `={{.*}} `, or inserts appropriate `{{.*}} `.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions