projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b4bcd6
)
Source information in 'expected relocatable expression' diagnostic.
author
Jim Grosbach
<grosbach@apple.com>
Fri, 27 Jan 2012 00:51:23 +0000
(
00:51
+0000)
committer
Jim Grosbach
<grosbach@apple.com>
Fri, 27 Jan 2012 00:51:23 +0000
(
00:51
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149105
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCAssembler.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCAssembler.cpp
b/lib/MC/MCAssembler.cpp
index d15094104d34de78d4241d54627dd5d63c3f0d9d..0087f67b434c25d6861b9a7a40f9879fe54108cf 100644
(file)
--- 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;