Chromium Code Reviews| Index: src/IceGlobalContext.cpp |
| diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
| index 8de57f3030fd4d3ace4e789030ef48123acb5df3..b5fc4f0545d6732b2df4c6adc25eaa52f98dde33 100644 |
| --- a/src/IceGlobalContext.cpp |
| +++ b/src/IceGlobalContext.cpp |
| @@ -342,6 +342,17 @@ void resizePending(std::vector<EmitterWorkItem *> &Pending, uint32_t Index) { |
| } // end of anonymous namespace |
| +void GlobalContext::emitFileHeader() { |
| + TimerMarker T1(Ice::TimerStack::TT_emit, this); |
| + if (getFlags().getOutFileType() == FT_Elf) { |
| + getObjectWriter()->writeInitialELFHeader(); |
| + } else { |
| + if (!ALLOW_DUMP) |
| + llvm::report_fatal_error("emitFileHeader for non-ELF"); |
| + TargetHeaderLowering::createLowering(this)->lower(); |
|
jvoung (off chromium)
2015/06/05 22:05:54
Or maybe the flag check and writeInitialELFHeader
|
| + } |
| +} |
| + |
| void GlobalContext::emitItems() { |
| const bool Threaded = !getFlags().isSequential(); |
| // Pending is a vector containing the reassembled, ordered list of |