diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 992eb40a0252559c7612ee5cbe479db4cb4ed54f..563282ab4988b87a6c7f3cb0ec774929067ba61a 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1158,9 +1158,19 @@ void AsmPrinter::EmitFunctionBody() { // Emit section containing stack size metadata. emitStackSizeSection(*MF); - if (isVerbose()) + if (isVerbose()) { OutStreamer->GetCommentOS() << "-- End function\n"; + /// INSERTED FOR DOSEK + const MachineFrameInfo &MFI = MF->getFrameInfo(); + OutStreamer->GetCommentOS() + << "Function Frame Size: [" + << "'"<< GlobalValue::dropLLVMManglingEscape(MF->getName()) << "'," + << MFI.getStackSize() << "," + << MFI.hasVarSizedObjects() + << "]\n"; + } + OutStreamer->AddBlankLine(); }