This is an archive of the discontinued LLVM Phabricator instance.

[X86] Remove the mm_malloc.h include guard hack from the X86 builtins tests
ClosedPublic

Authored by eladcohen on Sep 22 2016, 6:42 AM.

Details

Summary

The X86 clang/test/CodeGen/*builtins.c tests define the mm_malloc.h include guard as a hack for avoiding its inclusion (mm_malloc.h requires a hosted environment since it expects stdlib.h to be available - which is not the case in these internal clang codegen tests).

This patch removes this hack and instead passes -ffreestanding to clang cc1.

Diff Detail

Repository
rL LLVM

Event Timeline

eladcohen updated this revision to Diff 72158.Sep 22 2016, 6:42 AM
eladcohen retitled this revision from to [X86] Remove the mm_malloc.h include guard hack from the X86 builtins tests.
eladcohen updated this object.
eladcohen added a subscriber: cfe-commits.
RKSimon accepted this revision.Sep 27 2016, 7:33 AM
RKSimon edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 27 2016, 7:33 AM
This revision was automatically updated to reflect the committed changes.

Thanks for the review! committed r282581.