1
0
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:
Alex Brachet 2020-04-25 16:42:32 -04:00
parent c680704e13
commit 41beade9f4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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.