[all-commits] [llvm/llvm-project] 415a4f: [MC] Resolve the difference of symbols in consecut...

Jian Cai via All-commits all-commits at lists.llvm.org
Wed Sep 9 12:40:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 415a4fbea7c1a39c780caa3cb7287fe09c5267d2
      https://github.com/llvm/llvm-project/commit/415a4fbea7c1a39c780caa3cb7287fe09c5267d2
  Author: Jian Cai <caij2003 at gmail.com>
  Date:   2020-09-09 (Wed, 09 Sep 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCFragment.h
    M llvm/lib/MC/MCExpr.cpp
    M llvm/lib/MC/MCSection.cpp
    A llvm/test/MC/ARM/directive-if-subtraction.s
    M llvm/test/MC/MachO/reloc-diff.s

  Log Message:
  -----------
  [MC] Resolve the difference of symbols in consecutive MCDataFragements

Try to resolve the difference of two symbols in consecutive MCDataFragments.
This is important for an idiom like "foo:instr; .if . - foo; instr; .endif"
(https://bugs.llvm.org/show_bug.cgi?id=43795).

Reviewed By: nickdesaulniers

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




More information about the All-commits mailing list