aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-06 18:37:31 +0000
committerDevang Patel <dpatel@apple.com>2009-10-06 18:37:31 +0000
commit60b35bd8ecb2c3358b80d8441873cfffa0d27851 (patch)
treefb978c66a7569549d7d345d19272ecb75cfad17b /lib/CodeGen/SelectionDAG/FastISel.cpp
parent82a47e9118c95979ea5fd48f53472416295e51ef (diff)
Add support to handle debug info attached to an instruction.
This is not yet enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index 0bec2cf9b1..bccff160ce 100644
--- a/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -425,7 +425,9 @@ bool FastISel::SelectCall(User *I) {
if (AllocaLocation)
MMI->setVariableDbgInfo(DI->getVariable(), AllocaLocation, FI);
}
+#ifndef ATTACH_DEBUG_INFO_TO_AN_INSN
DW->RecordVariable(DI->getVariable(), FI);
+#endif
return true;
}
case Intrinsic::eh_exception: {