[PATCH] D78840: [TableGen] [NFC] Make argv0 const
Alex Brachet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 25 13:48:09 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG69dad324db3a: [TableGen] [NFC] Make argv0 const (authored by abrachet).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78840/new/
https://reviews.llvm.org/D78840
Files:
llvm/include/llvm/TableGen/Main.h
llvm/lib/TableGen/Main.cpp
Index: llvm/lib/TableGen/Main.cpp
===================================================================
--- llvm/lib/TableGen/Main.cpp
+++ llvm/lib/TableGen/Main.cpp
@@ -80,7 +80,7 @@
return 0;
}
-int llvm::TableGenMain(char *argv0, TableGenMainFn *MainFn) {
+int llvm::TableGenMain(const char *argv0, TableGenMainFn *MainFn) {
RecordKeeper Records;
// Parse the input file.
Index: llvm/include/llvm/TableGen/Main.h
===================================================================
--- llvm/include/llvm/TableGen/Main.h
+++ llvm/include/llvm/TableGen/Main.h
@@ -22,7 +22,7 @@
/// 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78840.260135.patch
Type: text/x-patch
Size: 855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200425/22f5a2aa/attachment.bin>
More information about the llvm-commits
mailing list