[Driver] Default to -fxray-function-index
authorFangrui Song <i@maskray.me>
Sun, 11 Jun 2023 22:38:13 +0000 (15:38 -0700)
committerFangrui Song <i@maskray.me>
Sun, 11 Jun 2023 22:38:13 +0000 (15:38 -0700)
commit63bd6d9e644335c8138a59281aafbf65a82fc47a
treee572d0c3a84885c2e22bffece9e10405c959461e
parent849f1dd15e92fda2b83dbb6144e6b28b2cb946e0
[Driver] Default to -fxray-function-index

As explained by commit 849f1dd15e92fda2b83dbb6144e6b28b2cb946e0,
-fxray-function-index was the original default but was accidentally flipped by
commit d8a8e5d6240a1db809cd95106910358e69bbf299. Restore the previous behavior.

Originally reported by Oleksii Lozovskyi in D145848.
clang/include/clang/Driver/Options.td
clang/lib/Driver/XRayArgs.cpp
clang/test/CodeGen/xray-function-index.c
clang/test/Driver/xray-function-index.cpp