Record line number at the beginning of a func.start.
authorDevang Patel <dpatel@apple.com>
Thu, 16 Apr 2009 15:07:09 +0000 (15:07 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 16 Apr 2009 15:07:09 +0000 (15:07 +0000)
This line was accidently lost yesterday.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69286 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

index ef7250f944ceedd0742c60c028e848972e5c11a4..9a2491959dd84c5dd801c19e31525722e8099ca3 100644 (file)
@@ -406,7 +406,7 @@ bool FastISel::SelectCall(User *I) {
         // Record the source line.
         unsigned Line = Subprogram.getLineNumber();
         setCurDebugLoc(DebugLoc::get(MF.getOrCreateDebugLocID(SrcFile, Line, 0)));
-        
+        DW->RecordSourceLine(Line, 0, SrcFile);
         // llvm.dbg.func_start also defines beginning of function scope.
         DW->RecordRegionStart(cast<GlobalVariable>(FSI->getSubprogram()));
       }
index 90e12ddeefe3ee8c898e6c12b8c661220f825de2..832ad7ef5ae9e8521d0cb1797e29a1c3f3c1a290 100644 (file)
@@ -4016,7 +4016,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
           // Record the source line.
           unsigned Line = Subprogram.getLineNumber();
           setCurDebugLoc(DebugLoc::get(MF.getOrCreateDebugLocID(SrcFile, Line, 0)));
-
+          DW->RecordSourceLine(Line, 0, SrcFile);
           // llvm.dbg.func_start also defines beginning of function scope.
           DW->RecordRegionStart(cast<GlobalVariable>(FSI.getSubprogram()));
         }