aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2021-08-02 14:10:22 +0300
committerMartin Storsjö <martin@martin.st>2021-08-05 10:19:55 +0300
commit46020f6f0c8aa134002208b2ecf0593b04c46d08 (patch)
tree7a7108ae455ffcc3de40ce77eeaff9af5edf4001 /flang/lib/Frontend/CompilerInvocation.cpp
parent39fa96a4906934774ba20bcb0cd5f808f619f3a6 (diff)
downloadllvm-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