EmitValue assumes an absolute (non PC-relative) fix-up only. This allows to create PC-relative fix-up optionally.
This is an upstream change that was needed for ObjectWriter/CoreRT use.
Paths
| Differential D15334
PC-relative support for EmitValue Needs ReviewPublic Authored by kyulee1 on Dec 8 2015, 7:37 AM.
Details
Diff Detail Event Timelinekyulee1 updated this object. Comment Actions We should probably find an additional reviewer; can you check with code owners? Also is there any way to test this?
Comment Actions Updated the changes -- no default value under MCTargetDesc. Added a reviewer, Kevin -- I just picked from the log who added SMLoc argument to EmitValue. Comment Actions This looks like it's unused by the in-tree targets. What other object formats do you know of that would benefit from this? Because if it's just CoreRT then it seems like it would make more sense to keep it there, where it can be tested properly.
Revision Contents
Diff 42177 include/llvm/MC/MCELFStreamer.h
include/llvm/MC/MCObjectStreamer.h
include/llvm/MC/MCStreamer.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCELFStreamer.cpp
lib/MC/MCObjectStreamer.cpp
lib/MC/MCStreamer.cpp
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
|
I'd suggest: