We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a175f commit 4311312Copy full SHA for 4311312
1 file changed
src/cli.ts
@@ -20,7 +20,7 @@ function parseCommandLine(): CommandLineArguments {
20
return cli as any as CommandLineArguments;
21
}
22
23
-const compilerOptions = parseCommandLine();
+const cliOptions = parseCommandLine();
24
25
const options = {
26
lib: [
@@ -30,9 +30,7 @@ const options = {
30
types: []
31
};
32
33
-const files = [
34
- 'sandbox/do-simple-math.ts'
35
-];
+const files = cliOptions.args;
36
37
const host = ts.createCompilerHost(options);
38
const program = ts.createProgram(files, options, host);
@@ -61,6 +59,6 @@ const llvmModule = generateModuleFromProgram(program);
61
59
62
60
llvm.verifyModule(llvmModule);
63
64
-if (compilerOptions.printIR) {
+if (cliOptions.printIR) {
65
console.log(llvmModule.print());
66
0 commit comments