From 1b732da428f3ed2ef249e873e8e58e8f8e2770e7 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 21 Oct 2019 10:01:34 -0700 Subject: [PATCH] Recover from a bad merge --- lldb/source/Core/SourceManager.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lldb/source/Core/SourceManager.cpp b/lldb/source/Core/SourceManager.cpp index c356cd5d0638a..06f18b7c4d026 100644 --- a/lldb/source/Core/SourceManager.cpp +++ b/lldb/source/Core/SourceManager.cpp @@ -329,6 +329,7 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) { const std::vector> &entry_points( GetEntryPointNames()); for (std::pair entry_point : entry_points) { +#if 0 // llvm.org version const ConstString entry_point_name = entry_point.first; const bool skip_prologue = entry_point.second; SymbolContextList sc_list; @@ -352,6 +353,15 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) { } } } +#else // FIXME: upstream this! + lldb_private::LineEntry line_entry(FindEntryPoint(executable_ptr)); + if (line_entry.IsValid()) { + SetDefaultFileAndLine(line_entry.file, line_entry.line); + file_spec = m_last_file_sp->GetFileSpec(); + line = m_last_line; + return true; + } +#endif } return LineEntry(); }