[PATCH] D86118: [MC] Resolve the difference of symbols in consecutive MCDataFragements

Jian Cai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 15:58:50 PDT 2020


jcai19 created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
jcai19 requested review of this revision.

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).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86118

Files:
  llvm/include/llvm/MC/MCFragment.h
  llvm/lib/MC/MCExpr.cpp
  llvm/test/MC/ARM/directive_if_offset.s
  llvm/test/MC/ARM/directive_if_offset_error.s
  llvm/test/MC/ARM/thumb2_directive_if_offset_error.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86118.286166.patch
Type: text/x-patch
Size: 6606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200817/d2f8e470/attachment.bin>


More information about the llvm-commits mailing list