diff options
author | Martin Storsjö <martin@martin.st> | 2021-08-02 14:10:22 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-08-05 10:19:55 +0300 |
commit | 46020f6f0c8aa134002208b2ecf0593b04c46d08 (patch) | |
tree | 7a7108ae455ffcc3de40ce77eeaff9af5edf4001 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 39fa96a4906934774ba20bcb0cd5f808f619f3a6 (diff) | |
download | llvm-46020f6f0c8aa134002208b2ecf0593b04c46d08.zip llvm-46020f6f0c8aa134002208b2ecf0593b04c46d08.tar.gz llvm-46020f6f0c8aa134002208b2ecf0593b04c46d08.tar.bz2 |
[llvm-rc] Allow specifying language with a leading 0x prefix
This option is always interpreted strictly as a hexadecimal string,
even if it has no prefix that indicates the number format, hence
the existing call to StringRef::getAsInteger(16, ...).
StringRef::getAsInteger(0, ...) consumes a leading "0x" prefix is
present, but when the radix is specified, the radix shouldn't
be included.
Both MS rc.exe and GNU windres accept the language with that
prefix.
Also allow specifying the codepage to llvm-windres with a different
radix, as GNU windres allows that (but MS rc.exe doesn't).
This fixes https://llvm.org/PR51295.
Differential Revision: https://reviews.llvm.org/D107263
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions