InsertSubprogramStart if ATTACH_DEBUG_INFO_TO_AN_INSN is not defined.

llvm-svn: 83419
This commit is contained in:
Devang Patel 2009-10-06 21:53:41 +00:00
parent e2595b5be6
commit 542ab5f551
1 changed files with 3 additions and 1 deletions

View File

@ -879,7 +879,9 @@ void CGDebugInfo::EmitFunctionStart(const char *Name, QualType ReturnType,
getOrCreateType(ReturnType, Unit),
Fn->hasInternalLinkage(), true/*definition*/);
// DebugFactory.InsertSubprogramStart(SP, Builder.GetInsertBlock());
#ifndef ATTACH_DEBUG_INFO_TO_AN_INSN
DebugFactory.InsertSubprogramStart(SP, Builder.GetInsertBlock());
#endif
// Push function on region stack.
RegionStack.push_back(SP);