From f3c936769b948b53a7c03d2d5fca1ef75284f977 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 27 Jan 2012 00:51:23 +0000 Subject: [PATCH] Source information in 'expected relocatable expression' diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149105 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCAssembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;