diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-09 21:42:11 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-09 21:42:11 +0000 |
commit | a2c2b85df4dfcc9c3a2df89c21f7a759a47df911 (patch) | |
tree | 7b11b812030d1f2bfba74df84f7dbd9a7339f22f | |
parent | bcced4ec315718d9a7775620eb2743b9aea89fd2 (diff) | |
download | bcm5719-llvm-a2c2b85df4dfcc9c3a2df89c21f7a759a47df911.tar.gz bcm5719-llvm-a2c2b85df4dfcc9c3a2df89c21f7a759a47df911.zip |
llvm.dbg.func_start also defines beginning of function scope.
llvm-svn: 68727
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index eefe8a2884a..e2d85f01b16 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -370,17 +370,13 @@ bool FastISel::SelectCall(User *I) { unsigned SrcFile = DW->getOrCreateSourceID(CompileUnit.getDirectory(Dir), CompileUnit.getFilename(FN)); - // Record the source line but does not create a label for the normal - // function start. It will be emitted at asm emission time. However, - // create a label if this is a beginning of inlined function. + // Record the source line. unsigned Line = Subprogram.getLineNumber(); unsigned LabelID = DW->RecordSourceLine(Line, 0, SrcFile); setCurDebugLoc(DebugLoc::get(MF.getOrCreateDebugLocID(SrcFile, Line, 0))); - if (DW->getRecordSourceLineCount() != 1) { - const TargetInstrDesc &II = TII.get(TargetInstrInfo::DBG_LABEL); - BuildMI(MBB, DL, II).addImm(LabelID); - } + // llvm.dbg.func_start also defines beginning of function scope. + DW->RecordRegionStart(cast<GlobalVariable>(FSI->getSubprogram())); } return true; |