| OLD | NEW |
| 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===// | 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); | 161 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); |
| 162 } else { | 162 } else { |
| 163 Ctx.lowerGlobals("last"); | 163 Ctx.lowerGlobals("last"); |
| 164 Ctx.lowerProfileData(); | 164 Ctx.lowerProfileData(); |
| 165 Ctx.lowerConstants(); | 165 Ctx.lowerConstants(); |
| 166 Ctx.lowerJumpTables(); | 166 Ctx.lowerJumpTables(); |
| 167 | 167 |
| 168 if (getFlags().getOutFileType() == FT_Elf) { | 168 if (getFlags().getOutFileType() == FT_Elf) { |
| 169 TimerMarker T1(Ice::TimerStack::TT_emitAsm, &Ctx); | 169 TimerMarker T1(Ice::TimerStack::TT_emitAsm, &Ctx); |
| 170 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); | 170 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); |
| 171 Ctx.emitTargetRODataSections(); |
| 171 Ctx.getObjectWriter()->writeNonUserSections(); | 172 Ctx.getObjectWriter()->writeNonUserSections(); |
| 172 } | 173 } |
| 173 } | 174 } |
| 174 | 175 |
| 175 if (getFlags().getSubzeroTimingEnabled()) | 176 if (getFlags().getSubzeroTimingEnabled()) |
| 176 Ctx.dumpTimers(); | 177 Ctx.dumpTimers(); |
| 177 | 178 |
| 178 if (getFlags().getTimeEachFunction()) { | 179 if (getFlags().getTimeEachFunction()) { |
| 179 constexpr bool NoDumpCumulative = false; | 180 constexpr bool NoDumpCumulative = false; |
| 180 Ctx.dumpTimers(GlobalContext::TSK_Funcs, NoDumpCumulative); | 181 Ctx.dumpTimers(GlobalContext::TSK_Funcs, NoDumpCumulative); |
| 181 } | 182 } |
| 182 Ctx.dumpStats(); | 183 Ctx.dumpStats(); |
| 183 } | 184 } |
| 184 | 185 |
| 185 } // end of namespace Ice | 186 } // end of namespace Ice |
| OLD | NEW |