Skip to content

Commit dd3aa9e

Browse files
committed
[objdump,readobj] Document the purpose and goals of each tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174439 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 39b5f12 commit dd3aa9e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
// dumps out a plethora of information about an object file depending on the
1212
// flags.
1313
//
14+
// The flags and output of this program should be near identical to those of
15+
// binutils objdump.
16+
//
1417
//===----------------------------------------------------------------------===//
1518

1619
#include "llvm-objdump.h"

tools/llvm-readobj/llvm-readobj.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
//
88
//===----------------------------------------------------------------------===//
99
//
10-
// This program is a utility that works like traditional Unix "readelf",
11-
// except that it can handle any type of object file recognized by lib/Object.
10+
// This is a tool similar to readelf, except it works on multiple object file
11+
// formats. The main purpose of this tool is to provide detailed output suitable
12+
// for FileCheck.
1213
//
13-
// It makes use of the generic ObjectFile interface.
14+
// Flags should be similar to readelf where supported, but the output format
15+
// does not need to be identical. The point is to not make users learn yet
16+
// another set of flags.
1417
//
15-
// Caution: This utility is new, experimental, unsupported, and incomplete.
18+
// Output should be specialized for each format where appropriate.
1619
//
1720
//===----------------------------------------------------------------------===//
1821

0 commit comments

Comments
 (0)