summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitWriter.cpp
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-06 00:29:58 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-06 00:29:58 +0000
commitb2e144ddffbc1e4d763352cacf7c760e49950a11 (patch)
treeaa75d25f932e37307a89463ca8bcd18150e1323b /llvm/lib/Bitcode/Writer/BitWriter.cpp
parent10a77adede813672f4b0e75f722079872bdee2dd (diff)
downloadbcm5719-llvm-b2e144ddffbc1e4d763352cacf7c760e49950a11.tar.gz
bcm5719-llvm-b2e144ddffbc1e4d763352cacf7c760e49950a11.zip
LLVMWriteBitcodeToFileHandle should work on all architectures now.
llvm-svn: 97856
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitWriter.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitWriter.cpp b/llvm/lib/Bitcode/Writer/BitWriter.cpp
index 7ed651b77e2..d2beaab4686 100644
--- a/llvm/lib/Bitcode/Writer/BitWriter.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud