diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-06 04:21:49 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-06 04:21:49 +0000 |
commit | d01f65aea1b576334f08e1da38573e54f2b8e394 (patch) | |
tree | 54f4200a1f1910b87d39914c7dad0dfd2a034501 | |
parent | 13259f8b0f7c9b5c5dc08ea06948e0de19e340b2 (diff) | |
download | external_llvm-d01f65aea1b576334f08e1da38573e54f2b8e394.zip external_llvm-d01f65aea1b576334f08e1da38573e54f2b8e394.tar.gz external_llvm-d01f65aea1b576334f08e1da38573e54f2b8e394.tar.bz2 |
Fix CBE code so that it compiles with VC++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19303 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 9ff6f5c..0efdb65 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -735,7 +735,7 @@ static void generateCompilerSpecificCode(std::ostream& Out) { << "#define alloca(x) __builtin_alloca(x)\n" << "#elif defined(__FreeBSD__)\n" << "#define alloca(x) __builtin_alloca(x)\n" - << "#else\n" + << "#elif !defined(_MSC_VER)\n" << "#include <alloca.h>\n" << "#endif\n\n"; diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 9ff6f5c..0efdb65 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -735,7 +735,7 @@ static void generateCompilerSpecificCode(std::ostream& Out) { << "#define alloca(x) __builtin_alloca(x)\n" << "#elif defined(__FreeBSD__)\n" << "#define alloca(x) __builtin_alloca(x)\n" - << "#else\n" + << "#elif !defined(_MSC_VER)\n" << "#include <alloca.h>\n" << "#endif\n\n"; |