@@ -329,7 +329,6 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) {
329
329
const std::vector<std::pair<ConstString, bool >> &entry_points (
330
330
GetEntryPointNames ());
331
331
for (std::pair<ConstString, bool > entry_point : entry_points) {
332
- #if 0 // llvm.org version
333
332
const ConstString entry_point_name = entry_point.first ;
334
333
const bool skip_prologue = entry_point.second ;
335
334
SymbolContextList sc_list;
@@ -353,15 +352,6 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) {
353
352
}
354
353
}
355
354
}
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
365
355
}
366
356
return LineEntry ();
367
357
}
@@ -381,6 +371,7 @@ bool SourceManager::GetDefaultFileAndLine(FileSpec &file_spec, uint32_t &line) {
381
371
// to set it (for instance when we stop somewhere...)
382
372
Module *executable_ptr = target_sp->GetExecutableModulePointer ();
383
373
if (executable_ptr) {
374
+ #if 0 // llvm.org
384
375
SymbolContextList sc_list;
385
376
ConstString main_name("main");
386
377
bool symbols_okay = false; // Force it to be a debug symbol.
@@ -404,6 +395,15 @@ bool SourceManager::GetDefaultFileAndLine(FileSpec &file_spec, uint32_t &line) {
404
395
}
405
396
}
406
397
}
398
+ #else // FIXME: upstream this!
399
+ lldb_private::LineEntry line_entry (FindEntryPoint (executable_ptr));
400
+ if (line_entry.IsValid ()) {
401
+ SetDefaultFileAndLine (line_entry.file , line_entry.line );
402
+ file_spec = m_last_file_sp->GetFileSpec ();
403
+ line = m_last_line;
404
+ return true ;
405
+ }
406
+ #endif
407
407
}
408
408
}
409
409
}
0 commit comments