diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-01-27 00:51:23 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-01-27 00:51:23 +0000 |
commit | f3c936769b948b53a7c03d2d5fca1ef75284f977 (patch) | |
tree | 87c6bb5339aa49b437a05ac4550c86212be62bb7 /lib/MC/MCAssembler.cpp | |
parent | 6b4bcd69d02e67bb00496db4d296fa7ab768d36f (diff) |
Source information in 'expected relocatable expression' diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAssembler.cpp')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index d15094104d..0087f67b43 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; |