mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Source information in 'expected relocatable expression' diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b4bcd69d0
commit
f3c936769b
@ -243,7 +243,7 @@ bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout,
|
|||||||
++stats::evaluateFixup;
|
++stats::evaluateFixup;
|
||||||
|
|
||||||
if (!Fixup.getValue()->EvaluateAsRelocatable(Target, Layout))
|
if (!Fixup.getValue()->EvaluateAsRelocatable(Target, Layout))
|
||||||
report_fatal_error("expected relocatable expression");
|
getContext().FatalError(Fixup.getLoc(), "expected relocatable expression");
|
||||||
|
|
||||||
bool IsPCRel = Backend.getFixupKindInfo(
|
bool IsPCRel = Backend.getFixupKindInfo(
|
||||||
Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel;
|
Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel;
|
||||||
|
Loading…
Reference in New Issue
Block a user