[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / lldb / tools / argdumper / argdumper.cpp
blob1cf0d6dae7a464632911b5d173408b387628a3d5
1 //===-- argdumper.cpp --------------------------------------------*- C++-*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "llvm/Support/JSON.h"
11 using namespace llvm;
13 int main(int argc, char *argv[]) {
14 json::Array Arguments;
15 for (int i = 1; i < argc; i++) {
16 Arguments.push_back(argv[i]);
18 llvm::outs() << json::Object({{"arguments", std::move(Arguments)}});
19 return 0;