diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index d36502985a5..d2bd0f1a881 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -157,10 +157,6 @@ public: bool doInitialization(); bool doFinalization(); - /// BeginFunction - Begin gathering function meta information. - /// - void BeginFunction(MachineFunction *) {} - /// EndFunction - Discard function meta information. /// void EndFunction(); diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6adc36c9b00..e7a0867f98e 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2100,9 +2100,6 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) { collectVariableInfo(); - // Begin accumulating function debug information. - MMI->BeginFunction((MachineFunction*)MF); - // Assumes in correct section after the entry point. EmitLabel("func_begin", ++SubprogramCount);