diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-03-06 00:29:58 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-03-06 00:29:58 +0000 |
commit | 760640599eb6ac4c38cf2f9053726be93b07e151 (patch) | |
tree | e31bcaad53a43d9840789373e2755a173c7a60c6 /lib/Bitcode | |
parent | 06a26637daff1bb785ef0945d1ba05f6ccdfab86 (diff) | |
download | external_llvm-760640599eb6ac4c38cf2f9053726be93b07e151.zip external_llvm-760640599eb6ac4c38cf2f9053726be93b07e151.tar.gz external_llvm-760640599eb6ac4c38cf2f9053726be93b07e151.tar.bz2 |
LLVMWriteBitcodeToFileHandle should work on all architectures now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Writer/BitWriter.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Bitcode/Writer/BitWriter.cpp b/lib/Bitcode/Writer/BitWriter.cpp index 7ed651b..d2beaab 100644 --- a/lib/Bitcode/Writer/BitWriter.cpp +++ b/lib/Bitcode/Writer/BitWriter.cpp @@ -27,20 +27,9 @@ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) { return 0; } -#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR >= 4) -#include <ext/stdio_filebuf.h> - int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) { raw_fd_ostream OS(FileHandle, false); WriteBitcodeToFile(unwrap(M), OS); return 0; } - -#else - -int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) { - return -1; // Not supported. -} - -#endif |