mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[TableGen] [NFC] Make argv0 const
`argv0` was never being modified. No changes made except to the type. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D78840
This commit is contained in:
parent
c680704e13
commit
41beade9f4
@ -22,7 +22,7 @@ class RecordKeeper;
|
||||
/// Returns true on error, false otherwise.
|
||||
using TableGenMainFn = bool (raw_ostream &OS, RecordKeeper &Records);
|
||||
|
||||
int TableGenMain(char *argv0, TableGenMainFn *MainFn);
|
||||
int TableGenMain(const char *argv0, TableGenMainFn *MainFn);
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
|
@ -80,7 +80,7 @@ static int createDependencyFile(const TGParser &Parser, const char *argv0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int llvm::TableGenMain(char *argv0, TableGenMainFn *MainFn) {
|
||||
int llvm::TableGenMain(const char *argv0, TableGenMainFn *MainFn) {
|
||||
RecordKeeper Records;
|
||||
|
||||
// Parse the input file.
|
||||
|
Loading…
Reference in New Issue
Block a user