| 198 | } |
| 199 | |
| 200 | void |
| 201 | DefaultOutputMgr::Output() |
| 202 | { |
| 203 | std::ostream &out = get_main_out(); |
| 204 | if (DeltaMonitor::is_running() && (Error::get_error() != SUCCESS)) { |
| 205 | out << "Delta reduction error!\n"; |
| 206 | } |
| 207 | if (is_split()) { |
| 208 | OutputGlobals(); |
| 209 | OutputAllHeaders(); |
| 210 | RandomOutputDefs(); |
| 211 | } |
| 212 | else { |
| 213 | OutputStructUnionDeclarations(out); |
| 214 | OutputGlobalVariables(out); |
| 215 | OutputForwardDeclarations(out); |
| 216 | OutputFunctions(out); |
| 217 | } |
| 218 | if (CGOptions::step_hash_by_stmt()) { |
| 219 | OutputMgr::OutputHashFuncDef(out); |
| 220 | OutputMgr::OutputStepHashFuncDef(out); |
| 221 | } |
| 222 | |
| 223 | if (!CGOptions::nomain()) |
| 224 | OutputMain(out); |
| 225 | OutputTail(out); |
| 226 | DeltaMonitor::Output(out); |
| 227 | } |
| 228 | |
| 229 | std::ostream & |
| 230 | DefaultOutputMgr::get_main_out() |
no test coverage detected