FLAGS: added --print_locations flag (boolean) for printing lines/column information

(cherry picked from commit 9decbaadfb3ef7ca946a732a03e475b576f4f1be)
This commit is contained in:
Vasily Levchenko
2017-03-27 17:51:13 +03:00
committed by vvlevchenko
parent 6f8d75a232
commit d106e9e8d9
5 changed files with 61 additions and 1 deletions
@@ -104,6 +104,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
put(PRINT_IR, arguments.printIr)
put(PRINT_DESCRIPTORS, arguments.printDescriptors)
put(PRINT_LOCATIONS, arguments.printLocations)
put(PRINT_BITCODE, arguments.printBitCode)
put(VERIFY_IR, arguments.verifyIr)
@@ -60,6 +60,9 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
@Argument(value = "print_descriptors", prefix = "--", description = "Print descriptor tree")
public boolean printDescriptors;
@Argument(value = "print_locations", prefix = "--", description = "Print locations")
public boolean printLocations;
@Argument(value = "print_bitcode", prefix = "--", description = "Print llvm bitcode")
public boolean printBitCode;