[LLVMdev] std::cout << *MyModule does not work anymore

Albert Graef Dr.Graef at t-online.de
Tue Aug 25 01:04:36 PDT 2009


Óscar Fuentes wrote:
> The changes are not trivial, as for instance llvm::raw_fd_ostream
> without flags fails if the file exists, but std::ofstream does not. The
> changes include using new names for flags that already exist on the
> standard namespace (F_Force instead of O_TRUNC, etc).

Also, each of LLVM <=2.5, 2.6 and 2.7(svn) provide their own,
incompatible llvm::raw_fd_ostream constructors. This makes it
unneccessarily hard to support different LLVM versions in a frontend.

I understand why the llvm::raw_fd_ostream interface was changed, but it
would have been nice if the old constructors were kept and implemented
in terms of the new ones. That's completely trivial in this case and
shouldn't cause any harm in existing applications. For many applications
other than LLVM itself, the basic LLVM <=2.5 interface which just
overwrites existing files is all that's ever needed.

Albert

-- 
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email:  Dr.Graef at t-online.de, ag at muwiinfa.geschichte.uni-mainz.de
WWW:    http://www.musikinformatik.uni-mainz.de/ag



More information about the llvm-dev mailing list