mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Simplify the handling of pcrel relocations on ELF. Now we do the right thing
for all symbol differences and can drop the old EmitPCRelSymbolValue method. This also make getExprForFDESymbol on ELF equal to the one on MachO, and it can be made non-virtual. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -114,30 +114,15 @@ void MCStreamer::EmitAbsValue(const MCExpr *Value, unsigned Size,
|
||||
|
||||
void MCStreamer::EmitValue(const MCExpr *Value, unsigned Size,
|
||||
unsigned AddrSpace) {
|
||||
EmitValueImpl(Value, Size, false, AddrSpace);
|
||||
}
|
||||
|
||||
void MCStreamer::EmitPCRelValue(const MCExpr *Value, unsigned Size,
|
||||
unsigned AddrSpace) {
|
||||
EmitValueImpl(Value, Size, true, AddrSpace);
|
||||
EmitValueImpl(Value, Size, AddrSpace);
|
||||
}
|
||||
|
||||
void MCStreamer::EmitSymbolValue(const MCSymbol *Sym, unsigned Size,
|
||||
bool isPCRel, unsigned AddrSpace) {
|
||||
EmitValueImpl(MCSymbolRefExpr::Create(Sym, getContext()), Size, isPCRel,
|
||||
unsigned AddrSpace) {
|
||||
EmitValueImpl(MCSymbolRefExpr::Create(Sym, getContext()), Size,
|
||||
AddrSpace);
|
||||
}
|
||||
|
||||
void MCStreamer::EmitSymbolValue(const MCSymbol *Sym, unsigned Size,
|
||||
unsigned AddrSpace) {
|
||||
EmitSymbolValue(Sym, Size, false, AddrSpace);
|
||||
}
|
||||
|
||||
void MCStreamer::EmitPCRelSymbolValue(const MCSymbol *Sym, unsigned Size,
|
||||
unsigned AddrSpace) {
|
||||
EmitSymbolValue(Sym, Size, true, AddrSpace);
|
||||
}
|
||||
|
||||
void MCStreamer::EmitGPRel32Value(const MCExpr *Value) {
|
||||
report_fatal_error("unsupported directive in streamer");
|
||||
}
|
||||
|
Reference in New Issue
Block a user