Skip to content

Commit 59b3b92

Browse files
authored
Merge pull request #8 from adrian-prantl/merge-recovery
Recover from a bad merge
2 parents 72406f6 + 1b732da commit 59b3b92

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lldb/source/Core/SourceManager.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) {
329329
const std::vector<std::pair<ConstString, bool>> &entry_points(
330330
GetEntryPointNames());
331331
for (std::pair<ConstString, bool> entry_point : entry_points) {
332+
#if 0 // llvm.org version
332333
const ConstString entry_point_name = entry_point.first;
333334
const bool skip_prologue = entry_point.second;
334335
SymbolContextList sc_list;
@@ -352,6 +353,15 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) {
352353
}
353354
}
354355
}
356+
#else // FIXME: upstream this!
357+
lldb_private::LineEntry line_entry(FindEntryPoint(executable_ptr));
358+
if (line_entry.IsValid()) {
359+
SetDefaultFileAndLine(line_entry.file, line_entry.line);
360+
file_spec = m_last_file_sp->GetFileSpec();
361+
line = m_last_line;
362+
return true;
363+
}
364+
#endif
355365
}
356366
return LineEntry();
357367
}

0 commit comments

Comments
 (0)