diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-06 21:53:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-06 21:53:41 +0000 |
commit | 542ab5f551a6e423991fc935131e02fe56faffb8 (patch) | |
tree | c681c5e5a3a3d3760c806f88bae43006e71bc656 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | e2595b5be6a6796e864afe5e9eee0197a9a2947e (diff) | |
download | bcm5719-llvm-542ab5f551a6e423991fc935131e02fe56faffb8.tar.gz bcm5719-llvm-542ab5f551a6e423991fc935131e02fe56faffb8.zip |
InsertSubprogramStart if ATTACH_DEBUG_INFO_TO_AN_INSN is not defined.
llvm-svn: 83419
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index de9390eb9f4..31f74a13490 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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); |