aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-06 21:53:41 +0000
committerDevang Patel <dpatel@apple.com>2009-10-06 21:53:41 +0000
commit6e461bf75359b4eb2ae59058741c3c8ba898d60f (patch)
tree073adaa3549495e05cb205efce725a40e89e071d /lib/CodeGen/CGDebugInfo.cpp
parent13d2d6cfd6a0032402c98b4fa237526c5b40e3fb (diff)
InsertSubprogramStart if ATTACH_DEBUG_INFO_TO_AN_INSN is not defined.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index de9390eb9f..31f74a1349 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/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);