Fixed some const issues with args to some lldb_private::Target functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@134826 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/lldb/Target/Target.h b/include/lldb/Target/Target.h
index 58643e6..effb68a 100644
--- a/include/lldb/Target/Target.h
+++ b/include/lldb/Target/Target.h
@@ -239,13 +239,13 @@
// Use this to create a function breakpoint by regexp in containingModule, or all modules if it is NULL
lldb::BreakpointSP
- CreateBreakpoint (FileSpec *containingModule,
+ CreateBreakpoint (const FileSpec *containingModule,
RegularExpression &func_regexp,
bool internal = false);
// Use this to create a function breakpoint by name in containingModule, or all modules if it is NULL
lldb::BreakpointSP
- CreateBreakpoint (FileSpec *containingModule,
+ CreateBreakpoint (const FileSpec *containingModule,
const char *func_name,
uint32_t func_name_type_mask,
bool internal = false);
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index b7f2dac..96cb3df 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -213,7 +213,7 @@
}
BreakpointSP
-Target::CreateBreakpoint (FileSpec *containingModule, const char *func_name, uint32_t func_name_type_mask, bool internal)
+Target::CreateBreakpoint (const FileSpec *containingModule, const char *func_name, uint32_t func_name_type_mask, bool internal)
{
BreakpointSP bp_sp;
if (func_name)
@@ -247,7 +247,7 @@
}
BreakpointSP
-Target::CreateBreakpoint (FileSpec *containingModule, RegularExpression &func_regex, bool internal)
+Target::CreateBreakpoint (const FileSpec *containingModule, RegularExpression &func_regex, bool internal)
{
SearchFilterSP filter_sp(GetSearchFilterForModule (containingModule));
BreakpointResolverSP resolver_sp(new BreakpointResolverName (NULL, func_regex));