mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
ArrayRef-ify libDriverMain
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -724,7 +724,7 @@ int main(int argc, char **argv) {
|
||||
StringRef Stem = sys::path::stem(ToolName);
|
||||
if (Stem.find("ranlib") == StringRef::npos &&
|
||||
Stem.find("lib") != StringRef::npos)
|
||||
return libDriverMain(argc, const_cast<const char **>(argv));
|
||||
return libDriverMain(makeArrayRef(argv, argc));
|
||||
|
||||
// Have the command line options parsed and handle things
|
||||
// like --help and --version.
|
||||
|
Reference in New Issue
Block a user