Mercurial > projects > ldc
comparison gen/statements.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 | 2667e3a145be |
children | 8c73ff5f69e0 |
comparison
equal
deleted
inserted
replaced
993:27956b440c0a | 994:18ad5601dff7 |
---|---|
1 // Statements: D -> LLVM glue | 1 // Statements: D -> LLVM glue |
2 | 2 |
3 #include <stdio.h> | 3 #include <stdio.h> |
4 #include <math.h> | 4 #include <math.h> |
5 #include <fstream> | 5 #include <fstream> |
6 #include <iostream> | |
7 | 6 |
8 #include "gen/llvm.h" | 7 #include "gen/llvm.h" |
9 #include "llvm/InlineAsm.h" | 8 #include "llvm/InlineAsm.h" |
10 #include "llvm/Support/CFG.h" | 9 #include "llvm/Support/CFG.h" |
11 | 10 |