[llvm-commits] [gcc-plugin] r80080 - /gcc-plugin/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Wed Aug 26 02:51:02 PDT 2009
Author: baldrick
Date: Wed Aug 26 04:51:02 2009
New Revision: 80080
URL: http://llvm.org/viewvc/llvm-project?rev=80080&view=rev
Log:
Compile fix due to LLVM API change: F_Force no longer
exists, it is now the default.
Modified:
gcc-plugin/trunk/llvm-backend.cpp
Modified: gcc-plugin/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-backend.cpp?rev=80080&r1=80079&r2=80080&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-backend.cpp (original)
+++ gcc-plugin/trunk/llvm-backend.cpp Wed Aug 26 04:51:02 2009
@@ -606,12 +606,9 @@
static void InitializeOutputStreams(bool Binary) {
assert(!OutStream && "Output stream already initialized!");
std::string Error;
- unsigned Flags = raw_fd_ostream::F_Force;
- if (Binary)
- Flags |= raw_fd_ostream::F_Binary;
-
- OutStream = new raw_fd_ostream(llvm_asm_file_name, Error, Flags);
+ OutStream = new raw_fd_ostream(llvm_asm_file_name, Error,
+ Binary ? raw_fd_ostream::F_Binary : 0);
if (!Error.empty())
llvm_report_error(Error);
More information about the llvm-commits
mailing list