llc-arglist: simple LLVM API cmdline tool

This commit is contained in:
steveej 2017-09-29 05:51:24 +02:00
parent 67731a9042
commit a83f56e30e
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#include "llvm/Support/CommandLine.h"
using namespace llvm;
/*
* Call with `--help-list-hidden` as argument to get a full list
*/
int main(int argc, char** argv) {
cl::ParseCommandLineOptions(argc, argv, "");
return 0;
}

2
src/code/llc-arglist/run.sh Executable file
View file

@ -0,0 +1,2 @@
g++ arglist.cc -o arglist -std=gnu++11 -lLLVM-4.0.1
./arglist "$@"