[all-commits] [llvm/llvm-project] 0c3752: [flang] COMMAND_ARGUMENT_COUNT runtime implementation
Diana via All-commits
all-commits at lists.llvm.org
Fri Sep 3 00:30:25 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0c375296cc771af7279427e942a207e3cfe7695f
https://github.com/llvm/llvm-project/commit/0c375296cc771af7279427e942a207e3cfe7695f
Author: Diana Picus <diana.picus at linaro.org>
Date: 2021-09-03 (Fri, 03 Sep 2021)
Changed paths:
M flang/runtime/CMakeLists.txt
A flang/runtime/command.cpp
M flang/unittests/Runtime/CMakeLists.txt
A flang/unittests/Runtime/CommandTest.cpp
Log Message:
-----------
[flang] COMMAND_ARGUMENT_COUNT runtime implementation
Grab whatever ProgramStart has stored in executionEnvironment.argc and
subtract 1 (based on the assumption that ProgramStart is called with
a C-style argc that counts the command name as an argument).
Spoiler alert: The tests will evolve into fixtures when we implement
GET_COMMAND_ARGUMENT etc.
Differential Revision: https://reviews.llvm.org/D109048
More information about the All-commits
mailing list