aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-31 00:27:11 -0800
committerFangrui Song <i@maskray.me>2020-12-31 00:27:11 -0800
commitfd739804e0591468762eb87488a497a3f7d4afb0 (patch)
treea3e0747ed63a57f668c0332782ccdfbe03cf2bef /llvm/lib/Transforms/Utils/LoopUtils.cpp
parentf2cc2669a0d91994c93f2e9708e137484081a7c1 (diff)
downloadllvm-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