[llvm] b423f4c - Fix d5090cd94, MSVC mangling issue
Alex Brachet via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 5 22:25:56 PDT 2022
Author: Alex Brachet
Date: 2022-10-06T05:24:45Z
New Revision: b423f4cc83330392b81a6a51fe4c67265d45d851
URL: https://github.com/llvm/llvm-project/commit/b423f4cc83330392b81a6a51fe4c67265d45d851
DIFF: https://github.com/llvm/llvm-project/commit/b423f4cc83330392b81a6a51fe4c67265d45d851.diff
LOG: Fix d5090cd94, MSVC mangling issue
Evidently * and [] are mangled differently by MSVC...
Added:
Modified:
llvm/tools/llvm-ifs/llvm-ifs.cpp
llvm/tools/llvm-readobj/llvm-readobj.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-ifs/llvm-ifs.cpp b/llvm/tools/llvm-ifs/llvm-ifs.cpp
index c682a22f840d8..4a0c1c9e1d9bc 100644
--- a/llvm/tools/llvm-ifs/llvm-ifs.cpp
+++ b/llvm/tools/llvm-ifs/llvm-ifs.cpp
@@ -376,7 +376,7 @@ static DriverConfig parseArgs(int argc, char *const *argv) {
return Config;
}
-int llvm_ifs_main(int argc, char *argv[]) {
+int llvm_ifs_main(int argc, char **argv) {
DriverConfig Config = parseArgs(argc, argv);
if (Config.InputFilePaths.empty())
diff --git a/llvm/tools/llvm-readobj/llvm-readobj.cpp b/llvm/tools/llvm-readobj/llvm-readobj.cpp
index 690859965bdc7..f3f89497d8bd9 100644
--- a/llvm/tools/llvm-readobj/llvm-readobj.cpp
+++ b/llvm/tools/llvm-readobj/llvm-readobj.cpp
@@ -613,7 +613,7 @@ std::unique_ptr<ScopedPrinter> createWriter() {
return std::make_unique<ScopedPrinter>(fouts());
}
-int llvm_readobj_main(int argc, char *argv[]) {
+int llvm_readobj_main(int argc, char **argv) {
InitLLVM X(argc, argv);
BumpPtrAllocator A;
StringSaver Saver(A);
More information about the llvm-commits
mailing list