| Index: src/IceELFObjectWriter.cpp
|
| diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp
|
| index d66b55392eea7dc0721e7b8143d874c87f93316f..8f7d3fcb9f22f3bab3438cb3f97b24b8c6337e10 100644
|
| --- a/src/IceELFObjectWriter.cpp
|
| +++ b/src/IceELFObjectWriter.cpp
|
| @@ -219,14 +219,8 @@ Elf64_Off ELFObjectWriter::alignFileOffset(Elf64_Xword Align) {
|
| void ELFObjectWriter::writeFunctionCode(const IceString &FuncName,
|
| bool IsInternal, Assembler *Asm) {
|
| assert(!SectionNumbersAssigned);
|
| + TimerMarker T_func(&Ctx, FuncName);
|
| TimerMarker Timer(TimerStack::TT_writeELF, &Ctx);
|
| - constexpr TimerStackIdT StackID = GlobalContext::TSK_Funcs;
|
| - TimerIdT TimerID = 0;
|
| - bool TimeThisFunction = Ctx.getFlags().getTimeEachFunction();
|
| - if (TimeThisFunction) {
|
| - TimerID = Ctx.getTimerID(StackID, FuncName);
|
| - Ctx.pushTimer(TimerID, StackID);
|
| - }
|
| ELFTextSection *Section = nullptr;
|
| ELFRelocationSection *RelSection = nullptr;
|
| const bool FunctionSections = Ctx.getFlags().getFunctionSections();
|
| @@ -278,8 +272,6 @@ void ELFObjectWriter::writeFunctionCode(const IceString &FuncName,
|
| RelSection->addRelocations(OffsetInSection, Asm->fixups(), SymTab);
|
| }
|
| Section->appendData(Str, Asm->getBufferView());
|
| - if (TimeThisFunction)
|
| - Ctx.popTimer(TimerID, StackID);
|
| }
|
|
|
| namespace {
|
|
|