mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
Add an EmitAbsValue helper method and use it in cases where we want to be sure
that no relocations are used (on MochO). Fixes llc producing different output from llc + llvm-mc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -156,7 +156,7 @@ void AsmPrinter::EmitReference(const MCSymbol *Sym, unsigned Encoding) const {
|
||||
|
||||
const MCExpr *Exp =
|
||||
TLOF.getExprForDwarfReference(Sym, Mang, MMI, Encoding, OutStreamer);
|
||||
OutStreamer.EmitValue(Exp, GetSizeOfEncodedValue(Encoding), /*addrspace*/0);
|
||||
OutStreamer.EmitAbsValue(Exp, GetSizeOfEncodedValue(Encoding));
|
||||
}
|
||||
|
||||
void AsmPrinter::EmitReference(const GlobalValue *GV, unsigned Encoding)const{
|
||||
|
Reference in New Issue
Block a user