[llvm] update llvm-dis header with available options (PR #108073)

Xiaofeng Tian via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 10 12:30:39 PDT 2024


https://github.com/txff99 created https://github.com/llvm/llvm-project/pull/108073

update llvm-dis header options

Closes #108069

>From bc9a9f15742c5832e4b4d5d2443f7c730d0d4ced Mon Sep 17 00:00:00 2001
From: Xiaofeng Tian <110771974+txff99 at users.noreply.github.com>
Date: Tue, 10 Sep 2024 12:25:39 -0700
Subject: [PATCH] update llvm-dis header with available options

---
 llvm/tools/llvm-dis/llvm-dis.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp
index d28af85bc739eb..e6c8997dc3b976 100644
--- a/llvm/tools/llvm-dis/llvm-dis.cpp
+++ b/llvm/tools/llvm-dis/llvm-dis.cpp
@@ -12,7 +12,12 @@
 //                            to the x.ll file.
 //  Options:
 //      --help   - Output information about command line switches
-//
+//      -o <filename>                  - Override output filename
+//      -f                             - Enable binary output on terminals
+//      --disable-output               - Don't output the .ll file
+//      --show-annotations             - Add informational comments to the .ll file
+//      --materialize-metadata         - Load module without materializing metadata, then materialize only the metadata
+// 
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Bitcode/BitcodeReader.h"



More information about the llvm-commits mailing list