llc-arglist: simple LLVM API cmdline tool
This commit is contained in:
parent
67731a9042
commit
a83f56e30e
2 changed files with 14 additions and 0 deletions
12
src/code/llc-arglist/arglist.cc
Normal file
12
src/code/llc-arglist/arglist.cc
Normal 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
2
src/code/llc-arglist/run.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
g++ arglist.cc -o arglist -std=gnu++11 -lLLVM-4.0.1
|
||||||
|
./arglist "$@"
|
Loading…
Add table
Add a link
Reference in a new issue