aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2022-05-13 16:50:52 -0700
committerMed Ismail Bennani <medismail.bennani@gmail.com>2022-05-13 18:33:05 -0700
commit174cf2f7476224c167608290d27eac846834dace (patch)
tree58ffb08155651ec4ad6a3ddb0dc0efedbb5b9abc /lldb/test/API/python_api
parent5122738331362b574baf0a5a17311cddd52a253e (diff)
downloadllvm-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.py2
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))