summaryrefslogtreecommitdiff
path: root/source/compiler-core/slang-command-line-args.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-command-line-args.h')
-rw-r--r--source/compiler-core/slang-command-line-args.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/compiler-core/slang-command-line-args.h b/source/compiler-core/slang-command-line-args.h
index c18996005..31807cd48 100644
--- a/source/compiler-core/slang-command-line-args.h
+++ b/source/compiler-core/slang-command-line-args.h
@@ -147,8 +147,8 @@ struct DownstreamArgs
/// Get the args at the nameIndex
CommandLineArgs& getArgsAt(Index nameIndex) { return m_entries[nameIndex].args; }
/// Get args by name - will assert if name isn't found
- CommandLineArgs& getArgsByName(char* name);
- const CommandLineArgs& getArgsByName(char* name) const;
+ CommandLineArgs& getArgsByName(const char* name);
+ const CommandLineArgs& getArgsByName(const char* name) const;
/// Looks for '-X' expressions, removing them from ioArgs and putting in appropriate args
SlangResult stripDownstreamArgs(CommandLineArgs& ioArgs, Flags flags, DiagnosticSink* sink);