[llvm-dev] RFC: [MC] Calculate difference of symbols in two consecutive MCDataFragments

Jian Cai via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 5 12:07:36 PST 2019


Hello,

I've been trying to add support to the integrated assembler to handle cases
like below

foo:instr; .if . - foo; instr; .endif

when the dot symbol and foo are assigned to consecutive MCDataFragments
<https://github.com/ClangBuiltLinux/linux/issues/744>. I have a patch
<https://reviews.llvm.org/D6941> under review. And even though it seems to
solve the problem, the concern is it complicates the code and we would like
to know if there is more decent way to handle this. Please feel free to
share your thoughts.

Thanks,
Jian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191105/aa358cc0/attachment.html>


More information about the llvm-dev mailing list