mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Update the Swift version numbers reported by objdump
Summary: Add Swift 4.1, Swift 4.2, and Swift 5 version numbers to objdump's MachODump's print_imae_info routines. rdar://46548425 Reviewers: pete, lhames, bob.wilson Reviewed By: pete, bob.wilson Subscribers: bob.wilson, llvm-commits Differential Revision: https://reviews.llvm.org/D55442 llvm-svn: 348632
This commit is contained in:
parent
8fcc0a84a9
commit
bc00ad23c1
@ -5626,7 +5626,9 @@ static void print_image_info64(SectionRef S, struct DisassembleInfo *info) {
|
||||
else if(swift_version == 5)
|
||||
outs() << " Swift 4.0";
|
||||
else if(swift_version == 6)
|
||||
outs() << " Swift 4.1";
|
||||
outs() << " Swift 4.1/Swift 4.2";
|
||||
else if(swift_version == 7)
|
||||
outs() << " Swift 5 or later";
|
||||
else
|
||||
outs() << " unknown future Swift version (" << swift_version << ")";
|
||||
}
|
||||
@ -5677,7 +5679,9 @@ static void print_image_info32(SectionRef S, struct DisassembleInfo *info) {
|
||||
else if(swift_version == 5)
|
||||
outs() << " Swift 4.0";
|
||||
else if(swift_version == 6)
|
||||
outs() << " Swift 4.1";
|
||||
outs() << " Swift 4.1/Swift 4.2";
|
||||
else if(swift_version == 7)
|
||||
outs() << " Swift 5 or later";
|
||||
else
|
||||
outs() << " unknown future Swift version (" << swift_version << ")";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user