[llvm] [llvm-objdump] Add the --visualize-jumps option (PR #74858)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 07:45:47 PST 2023
================
@@ -166,6 +169,114 @@ class SourcePrinter {
StringRef Delimiter = "; ");
};
+enum VisualizeJumpsMode : int {
+ Off = 0,
+
+ ColorAuto = 0x1,
+ Color3Bit,
+ //Color8Bit, // TODO GNU objdump can use more colors in 256-color terminals
+
+ CharsASCII = 0x10,
+ CharsUnicode = 0x20,
+
+ ColorMask = 0xf,
+ CharsMask = 0xf0,
+};
+
----------------
jh7370 wrote:
Nit: double blank line. Is this file clang-formatted?
https://github.com/llvm/llvm-project/pull/74858
More information about the llvm-commits
mailing list