Fix build since r202052
authorTom Stellard <thomas.stellard@amd.com>
Mon, 24 Feb 2014 21:31:56 +0000 (21:31 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 24 Feb 2014 21:31:56 +0000 (21:31 +0000)
sys::fs_F_Binary has been replaced with sys::fs_F_Text

llvm-svn: 202081

libclc/utils/prepare-builtins.cpp

index bf85644..2acf4ee 100644 (file)
@@ -76,8 +76,10 @@ int main(int argc, char **argv) {
   std::string ErrorInfo;
   OwningPtr<tool_output_file> Out
   (new tool_output_file(OutputFilename.c_str(), ErrorInfo,
-#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR > 3)
+#if (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR == 4)
                         sys::fs::F_Binary));
+#elif LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 5)
+                        sys::fs::F_None));
 #else
                         raw_fd_ostream::F_Binary));
 #endif