[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Jun 16 18:58:01 PDT 2003
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.94 -> 1.95
---
Log message:
Don't include alloca.h on FreeBSD.
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.94 llvm/lib/CWriter/Writer.cpp:1.95
--- llvm/lib/CWriter/Writer.cpp:1.94 Mon Jun 16 07:21:19 2003
+++ llvm/lib/CWriter/Writer.cpp Mon Jun 16 18:57:13 2003
@@ -528,7 +528,9 @@
<< "extern void *__builtin_alloca(unsigned long);\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#else\n"
+ << "#ifndef __FreeBSD__\n"
<< "#include <alloca.h>\n"
+ << "#endif\n"
<< "#endif\n\n";
}
More information about the llvm-commits
mailing list