This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Extract InitializePlatformCommonFlags
ClosedPublic

Authored by vitalybuka on Nov 4 2020, 6:54 PM.

Details

Summary

And move some Android specifi declarations from headers

Diff Detail

Event Timeline

vitalybuka created this revision.Nov 4 2020, 6:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2020, 6:54 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka requested review of this revision.Nov 4 2020, 6:54 PM
oontvoo added inline comments.Nov 4 2020, 6:59 PM
compiler-rt/lib/sanitizer_common/sanitizer_linux.h
156–164

IMO, keeping them in one place is easier to maintain than scattering them to the .cpp files.
We've already put a few android-specific things here anyways.

The init-common-flag change LGTM, though.

vitalybuka added inline comments.Nov 4 2020, 7:06 PM
compiler-rt/lib/sanitizer_common/sanitizer_linux.h
156–164

The are kind of unrelated and we need to try to move __libc_iterate_dynamic_tls into platform specific file, probably sanitizer_linux_libcdep.cpp anyway

oontvoo accepted this revision.Nov 4 2020, 7:12 PM
oontvoo added inline comments.
compiler-rt/lib/sanitizer_common/sanitizer_linux.h
156–164

Can we make *_libcdep.h to dump these weak-decls?
(that should also fix the FIXME you've put in lsan_common.cpp?)

This revision is now accepted and ready to land.Nov 4 2020, 7:12 PM
This revision was landed with ongoing or failed builds.Nov 4 2020, 7:23 PM
This revision was automatically updated to reflect the committed changes.