diff options
| author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-05-13 16:50:52 -0700 |
|---|---|---|
| committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-05-13 18:33:05 -0700 |
| commit | 174cf2f7476224c167608290d27eac846834dace (patch) | |
| tree | 58ffb08155651ec4ad6a3ddb0dc0efedbb5b9abc /lldb/test/API/python_api | |
| parent | 5122738331362b574baf0a5a17311cddd52a253e (diff) | |
| download | llvm-174cf2f7476224c167608290d27eac846834dace.zip llvm-174cf2f7476224c167608290d27eac846834dace.tar.gz llvm-174cf2f7476224c167608290d27eac846834dace.tar.bz2 | |
[lldb/API] Turn SBCompileUnit::GetIndexForLineEntry into FindLineEntryIndex (NFC)
This patch renames the `SBCompileUnit::GetIndexForLineEntry` api to be
an overload of `SBCompileUnit::FindLineEntryIndex`
Differential Revision: https://reviews.llvm.org/D125594
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/test/API/python_api')
| -rw-r--r-- | lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py b/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py index 2c4ebf7..9f7de01 100644 --- a/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py +++ b/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py @@ -37,7 +37,7 @@ class CompileUnitAPITestCase(TestBase): main_cu = sc_list.compile_units[0] self.assertTrue(main_cu.IsValid(), "Main executable CU is not valid") - self.assertEqual(main_cu.GetIndexForLineEntry(line_entry, True), + self.assertEqual(main_cu.FindLineEntryIndex(line_entry, True), main_cu.FindLineEntryIndex(0, line_entry.GetLine(), line_entry.GetFileSpec(), True)) |
