mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 22:34:39 +00:00
Apple's MacOS X is another OS which does not provide alloca() via <alloca.h>
llvm-svn: 14781
This commit is contained in:
parent
b7f3d7b04b
commit
da8ed5f4d5
@ -664,7 +664,7 @@ void CWriter::writeOperand(Value *Operand) {
|
||||
static void generateCompilerSpecificCode(std::ostream& Out) {
|
||||
// Alloca is hard to get, and we don't want to include stdlib.h here...
|
||||
Out << "/* get a declaration for alloca */\n"
|
||||
<< "#if defined(sun) || defined(__CYGWIN__)\n"
|
||||
<< "#if defined(sun) || defined(__CYGWIN__) || defined(__APPLE__)\n"
|
||||
<< "extern void *__builtin_alloca(unsigned long);\n"
|
||||
<< "#define alloca(x) __builtin_alloca(x)\n"
|
||||
<< "#else\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user