diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-11 15:57:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-11 15:57:04 +0000 |
commit | 825236b1163da1d715213d90c182dad7f3cd0386 (patch) | |
tree | 74a56e90fafa949877869aadf97e00d08ea8b862 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | be4fe9e2397f04b83ac5b82d018c6bda22f5391f (diff) | |
download | bcm5719-llvm-825236b1163da1d715213d90c182dad7f3cd0386.tar.gz bcm5719-llvm-825236b1163da1d715213d90c182dad7f3cd0386.zip |
Revert r68847. It breaks the build on non-Darwin targets, with this message
from the assembler:
Error: unknown pseudo-op: `.debug_inlined'
llvm-svn: 68863
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 617f6e41fd5..8467330bb9b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -372,23 +372,11 @@ bool FastISel::SelectCall(User *I) { // Record the source line. unsigned Line = Subprogram.getLineNumber(); - unsigned LabelID = DW->RecordSourceLine(Line, 0, SrcFile); + DW->RecordSourceLine(Line, 0, SrcFile); setCurDebugLoc(DebugLoc::get(MF.getOrCreateDebugLocID(SrcFile, Line, 0))); - std::string SPName; - Subprogram.getLinkageName(SPName); - if (!SPName.empty() - && strcmp(SPName.c_str(), MF.getFunction()->getNameStart())) { - // This is a beginning of inlined function. - DW->RecordRegionStart(cast<GlobalVariable>(FSI->getSubprogram()), - LabelID); - const TargetInstrDesc &II = TII.get(TargetInstrInfo::DBG_LABEL); - BuildMI(MBB, DL, II).addImm(LabelID); - DW->RecordInlineInfo(Subprogram.getGV(), LabelID); - } else { - // llvm.dbg.func_start also defines beginning of function scope. - DW->RecordRegionStart(cast<GlobalVariable>(FSI->getSubprogram())); - } + // llvm.dbg.func_start also defines beginning of function scope. + DW->RecordRegionStart(cast<GlobalVariable>(FSI->getSubprogram())); } return true; |