Revert "[libcxx] Use alias for detecting overriden function (#114961)"

This reverts commit 62bd10f7d18ca6f544286767cae2c9026d493888.
Breaks building with -flto=thin, see
https://github.com/llvm/llvm-project/pull/114961#issuecomment-2555754056

GitOrigin-RevId: 8dfae0c462e9558df77c83c97d89b4b83ed1baff
1 file changed