summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-02-24 21:31:56 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-02-24 21:31:56 +0000
commitf5dec6f88e148331c27fff6d1a160f5f2e1e1f4c (patch)
tree6cb4cf62d5a6ede63d6d9b7085e8e697842f6f98 /utils
parent5888f700bb0f44837bdcef8ac7a41d01b162c9d7 (diff)
Fix build since r202052
sys::fs_F_Binary has been replaced with sys::fs_F_Text git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@202081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/prepare-builtins.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp
index bf85644..2acf4ee 100644
--- a/utils/prepare-builtins.cpp
+++ b/utils/prepare-builtins.cpp
@@ -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