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 | 1574e4336f5683313b87da8e364d2002149a5fb9 (patch) | |
tree | 528be67ff377886b93d9abefaea2cc9bc8759869 /test/CodeGen/prefetchw-builtins.c | |
parent | e716c9e3bb9eb7336ca77da22d880fa456bcdc6c (diff) | |
download | clang-1574e4336f5683313b87da8e364d2002149a5fb9.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/prefetchw-builtins.c')
-rw-r--r-- | test/CodeGen/prefetchw-builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/CodeGen/prefetchw-builtins.c b/test/CodeGen/prefetchw-builtins.c index 8a50325ea1..53416de46f 100644 --- a/test/CodeGen/prefetchw-builtins.c +++ b/test/CodeGen/prefetchw-builtins.c @@ -1,7 +1,5 @@ -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-feature +prfchw -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -target-feature +prfchw -emit-llvm -o - %s | FileCheck %s -// Don't include mm_malloc.h, it's system specific. -#define __MM_MALLOC_H #include <x86intrin.h> |