On 11/20/2012 08:32 PM, Basile Starynkevitch wrote:
On Tue, Nov 20, 2012 at 11:24:40AM -0800, Lawrence Crowl wrote:
[....]
All of these functions come in two forms.
function (FILE *, item_to_dump, formatting)
function (item_to_dump, formatting)
Since we have switched to C++, it would be really nice to have dump functions
writing to a C++ std::ostream
If I understood correctly, including iostream may (depending on your c++
library) introduce static constructors in every translation unit. This
could negatively impact the startup time of gcc.
LLVM explicitly forbids the use. If we allow it, it would be good if a
more knowledgeable person thought about the possible overhead.
Cheers
Tobi