Mercurial > projects > ldc
comparison gen/toir.cpp @ 994:18ad5601dff7
Use LLVM OStream wrapper instead of <iostream> in the logger.
llvm::OStream provides all std::ostream functionality (by holding a
std::ostream* internally), but
* doesn't include <iostream>, avoiding per-file overhead.
* allows the stream pointer to be null, and the (inlined) operators do nothing
when that's the case. (This also allows removal of the ofstream("/dev/null")
hack Logger used when disabled, which presumably wasn't very portable)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Thu, 26 Feb 2009 14:51:02 +0100 |
parents | 73ff89728d85 |
children | e594385d7e53 |
comparison
equal
deleted
inserted
replaced
993:27956b440c0a | 994:18ad5601dff7 |
---|---|
7 */ | 7 */ |
8 | 8 |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <math.h> | 10 #include <math.h> |
11 #include <fstream> | 11 #include <fstream> |
12 #include <iostream> | |
13 | 12 |
14 #include "gen/llvm.h" | 13 #include "gen/llvm.h" |
15 | 14 |
16 #include "attrib.h" | 15 #include "attrib.h" |
17 #include "total.h" | 16 #include "total.h" |