[all-commits] [llvm/llvm-project] 5afb36: [ms] [llvm-ml] Allow arbitrary strings as integer ...

Eric Astor via All-commits all-commits at lists.llvm.org
Fri Nov 6 14:16:10 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5afb36080809567edf5a7936821dcac5a064527b
      https://github.com/llvm/llvm-project/commit/5afb36080809567edf5a7936821dcac5a064527b
  Author: Eric Astor <epastor at google.com>
  Date:   2020-11-06 (Fri, 06 Nov 2020)

  Changed paths:
    M llvm/lib/MC/MCParser/MasmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/test/tools/llvm-ml/strings.test
    A llvm/test/tools/llvm-ml/strings_errors.test

  Log Message:
  -----------
  [ms] [llvm-ml] Allow arbitrary strings as integer constants

MASM interprets strings in expression contexts as integers expressed in big-endian base-256, treating each character as its ASCII representation.

This completely eliminates the need to special-case single-character strings.

Reviewed By: thakis

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




More information about the All-commits mailing list