From: Jim Grosbach Date: Fri, 27 Jan 2012 00:51:23 +0000 (+0000) Subject: Source information in 'expected relocatable expression' diagnostic. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3c936769b948b53a7c03d2d5fca1ef75284f977;p=oota-llvm.git Source information in 'expected relocatable expression' diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149105 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index d15094104d3..0087f67b434 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -243,7 +243,7 @@ bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout, ++stats::evaluateFixup; if (!Fixup.getValue()->EvaluateAsRelocatable(Target, Layout)) - report_fatal_error("expected relocatable expression"); + getContext().FatalError(Fixup.getLoc(), "expected relocatable expression"); bool IsPCRel = Backend.getFixupKindInfo( Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel;