diff options
author | Elad Cohen <elad2.cohen@intel.com> | 2016-09-28 11:59:09 +0000 |
---|---|---|
committer | Elad Cohen <elad2.cohen@intel.com> | 2016-09-28 11:59:09 +0000 |
commit | b107a22afbd2a5a07259c56b7ce84450fe7c8783 (patch) | |
tree | 0115f79f39b94af6e8d7f6580ab328656582f5f4 /clang/test/CodeGen/sha-builtins.c | |
parent | 2bdc74a471fc34a7dbf67df89938d0a420f411cb (diff) | |
download | bcm5719-llvm-b107a22afbd2a5a07259c56b7ce84450fe7c8783.tar.gz bcm5719-llvm-b107a22afbd2a5a07259c56b7ce84450fe7c8783.zip |
[X86] Remove the mm_malloc.h include guard hack from the X86 builtins tests
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.
Differential Revision: https://reviews.llvm.org/D24825
llvm-svn: 282581
Diffstat (limited to 'clang/test/CodeGen/sha-builtins.c')
-rw-r--r-- | clang/test/CodeGen/sha-builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/CodeGen/sha-builtins.c b/clang/test/CodeGen/sha-builtins.c index 9c14a1ea7f0..ede1a6bf7b1 100644 --- a/clang/test/CodeGen/sha-builtins.c +++ b/clang/test/CodeGen/sha-builtins.c @@ -1,7 +1,5 @@ -// RUN: %clang_cc1 %s -triple=x86_64-unknown-unknown -target-feature +sha -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-unknown-unknown -target-feature +sha -emit-llvm -o - | FileCheck %s -// Don't include mm_malloc.h, it's system specific. -#define __MM_MALLOC_H #include <immintrin.h> |