mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Added the -m option as an alias for -format=darwin to llvm-nm and llvm-size
which is what the darwin tools use for the Mach-O format output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2ae686a2ab
commit
d1e64617ee
@ -2,7 +2,7 @@ RUN: llvm-nm -format darwin %p/Inputs/darwin-m-test1.mach0-armv7 \
|
||||
RUN: | FileCheck %s -check-prefix test1
|
||||
RUN: llvm-nm -format darwin %p/Inputs/darwin-m-test2.macho-i386 \
|
||||
RUN: | FileCheck %s -check-prefix test2
|
||||
RUN: llvm-nm -format darwin %p/Inputs/darwin-m-test3.macho-x86-64 \
|
||||
RUN: llvm-nm -m %p/Inputs/darwin-m-test3.macho-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix test3
|
||||
|
||||
# This is testing that the various bits in the n_desc feild are correct
|
||||
|
@ -8,7 +8,7 @@ RUN: llvm-size %p/Inputs/macho-archive-x86_64.a \
|
||||
RUN: | FileCheck %s -check-prefix AR
|
||||
RUN: llvm-size -format darwin %p/Inputs/macho-archive-x86_64.a \
|
||||
RUN: | FileCheck %s -check-prefix mAR
|
||||
RUN: llvm-size -format darwin -x -l %p/Inputs/hello-world.macho-x86_64 \
|
||||
RUN: llvm-size -m -x -l %p/Inputs/hello-world.macho-x86_64 \
|
||||
RUN: | FileCheck %s -check-prefix mxl
|
||||
RUN: llvm-size %p/Inputs/macho-universal.x86_64.i386 \
|
||||
RUN: | FileCheck %s -check-prefix u
|
||||
|
@ -81,6 +81,7 @@ cl::alias ExternalOnly2("g", cl::desc("Alias for --extern-only"),
|
||||
|
||||
cl::opt<bool> BSDFormat("B", cl::desc("Alias for --format=bsd"));
|
||||
cl::opt<bool> POSIXFormat("P", cl::desc("Alias for --format=posix"));
|
||||
cl::opt<bool> DarwinFormat("m", cl::desc("Alias for --format=darwin"));
|
||||
|
||||
cl::opt<bool> PrintFileName(
|
||||
"print-file-name",
|
||||
@ -828,6 +829,8 @@ int main(int argc, char **argv) {
|
||||
OutputFormat = bsd;
|
||||
if (POSIXFormat)
|
||||
OutputFormat = posix;
|
||||
if (DarwinFormat)
|
||||
OutputFormat = darwin;
|
||||
|
||||
// The relative order of these is important. If you pass --size-sort it should
|
||||
// only print out the size. However, if you pass -S --size-sort, it should
|
||||
|
@ -46,6 +46,7 @@ static cl::opt<OutputFormatTy>
|
||||
OutputFormatShort(cl::desc("Specify output format"),
|
||||
cl::values(clEnumValN(sysv, "A", "System V format"),
|
||||
clEnumValN(berkeley, "B", "Berkeley format"),
|
||||
clEnumValN(darwin, "m", "Darwin -m format"),
|
||||
clEnumValEnd),
|
||||
cl::init(berkeley));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user