summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingWriter.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-15 16:41:58 +0000
committerXinliang David Li <davidxl@google.com>2016-05-15 16:41:58 +0000
commit389c983afe85bc0357ca18a9688c890361482851 (patch)
tree7c064c43cc12cfc924c19f8498d900cd92c55d70 /lib/profile/InstrProfilingWriter.c
parent0e776a7336e275c62ae277d8550e71030c57bbb9 (diff)
downloadcompiler-rt-389c983afe85bc0357ca18a9688c890361482851.tar.gz
Use __builtin_alloca with __GNUC__
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@269592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingWriter.c')
-rw-r--r--lib/profile/InstrProfilingWriter.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/profile/InstrProfilingWriter.c b/lib/profile/InstrProfilingWriter.c
index da0b58df0..3e90b1d49 100644
--- a/lib/profile/InstrProfilingWriter.c
+++ b/lib/profile/InstrProfilingWriter.c
@@ -10,11 +10,8 @@
#include "InstrProfiling.h"
#include "InstrProfilingInternal.h"
#ifdef _MSC_VER
+/* For _alloca */
#include <malloc.h>
-#elif defined(__FreeBSD__)
-#include <stdlib.h>
-#else
-#include <alloca.h>
#endif
#include <string.h>