comparison gen/logger.cpp @ 102:027b8d8b71ec trunk

[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up. Basically it tries to do the following in order: Resolve types, Declare symbols, Create constant initializers, Apply initializers, Generate functions bodies. ClassInfo is now has the most useful(biased?) members working. Probably other stuf...
author lindquist
date Sun, 18 Nov 2007 06:52:57 +0100
parents 61615fa85940
children 5825d48b27d1
comparison
equal deleted inserted replaced
101:169fda3a77d4 102:027b8d8b71ec
14 static std::ofstream null_out("/dev/null"); 14 static std::ofstream null_out("/dev/null");
15 15
16 static bool enabled = false; 16 static bool enabled = false;
17 void indent() 17 void indent()
18 { 18 {
19 if (enabled) 19 if (enabled) {
20 indent_str += " "; 20 indent_str += "* ";
21 }
21 } 22 }
22 void undent() 23 void undent()
23 { 24 {
24 if (enabled) { 25 if (enabled) {
25 assert(!indent_str.empty()); 26 assert(!indent_str.empty());