HomePhabricator

[lld-macho] Make lld::getInteger() tolerate leading "0x"/"0X" when base is 16

Authored by gkm on Mon, Sep 21, 7:02 PM.

Description

[lld-macho] Make lld::getInteger() tolerate leading "0x"/"0X" when base is 16

ld64 is cool with leading 0x for hex command-line args, and we should be also.

Reviewed By: #lld-macho, int3

Differential Revision: https://reviews.llvm.org/D88065

Details