FailedChanges

Summary

  1. MCObjectStreamer: assign MCSymbols in the dummy fragment to offset 0. (details)
Commit bf142fc43347d8a35a71f46f7dda7e2a0a992e0d by jyknight
MCObjectStreamer: assign MCSymbols in the dummy fragment to offset 0.
In MCObjectStreamer, when there is no current fragment, initially
symbols are created in a "pending" state and assigned to a dummy empty
fragment.
Previously, they were not being assigned an offset, and thus
evaluateAbsolute would fail if trying to evaluate an expression 'a - b',
where both 'a' and 'b' were in this pending state.
Also slightly refactored the EmitLabel overload which takes an
MCFragment for clarity.
Fixes: https://llvm.org/PR41825
Differential Revision: https://reviews.llvm.org/D70062
The file was modifiedllvm/include/llvm/MC/MCELFStreamer.h
The file was modifiedllvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
The file was modifiedllvm/include/llvm/MC/MCObjectStreamer.h
The file was modifiedllvm/lib/MC/MCELFStreamer.cpp
The file was modifiedllvm/test/MC/AsmParser/assembler-expressions.s
The file was modifiedllvm/lib/MC/MCObjectStreamer.cpp