This is an archive of the discontinued LLVM Phabricator instance.

Set dso_local on cfi_slowpath
ClosedPublic

Authored by espindola on Mar 29 2018, 10:25 AM.

Details

Diff Detail

Event Timeline

espindola created this revision.Mar 29 2018, 10:25 AM

This looks wrong. cfi_slowpath is defined in libclang_rt.cfi, which is linked to the main executable. It is not always dso-local. On Android it is defined in libdl.so and is never dso-local.

This looks wrong. cfi_slowpath is defined in libclang_rt.cfi, which is linked to the main executable. It is not always dso-local. On Android it is defined in libdl.so and is never dso-local.

And we don't set cfi_local in that case. See the ITANIUM lines is the testcase.

The CodegenModule functions are named setDSOLocal, setDLLImportDLLExport, etc, but they only set the corresponding flags when appropriate.

eugenis accepted this revision.Mar 29 2018, 2:08 PM

LGTM then. This naming is confusing.

This revision is now accepted and ready to land.Mar 29 2018, 2:08 PM