This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer_common] Disable filesystem-related code for Fuchsia
ClosedPublic

Authored by mcgrathr on Jul 28 2017, 3:38 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

mcgrathr created this revision.Jul 28 2017, 3:38 PM
vitalybuka added inline comments.Jul 28 2017, 4:31 PM
lib/sanitizer_common/sanitizer_suppressions.cc
63 ↗(On Diff #108729)

if this is not going to support filesystem, why only part of the function is disabled?

mcgrathr added inline comments.Jul 28 2017, 5:33 PM
lib/sanitizer_common/sanitizer_suppressions.cc
63 ↗(On Diff #108729)

Fuchsia does not support filesystem-oriented calls per se, but it does implement ReadFileToBuffer in its own way, where the "file name" is treated as an "identifier for configuration text blob" passed to a system service.

vitalybuka accepted this revision.Jul 28 2017, 5:46 PM

LGTM but better to split color and file change

This revision is now accepted and ready to land.Jul 28 2017, 5:46 PM
mcgrathr updated this revision to Diff 109168.Aug 1 2017, 12:01 PM

The SupportsColor change here is to avoid using report_file, so I think it belongs in this change.

This is rebased and ready to land after D36028 lands.
Please land it for me!

Thanks,
Roland

vitalybuka added inline comments.Aug 1 2017, 2:19 PM
lib/sanitizer_common/sanitizer_common_libcdep.cc
38 ↗(On Diff #109168)

I am going to clang-format this patches.
git clang-format --style file -f origin/master

This revision was automatically updated to reflect the committed changes.