projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8cdf0
)
Use report_fatal_error() instead of llvm_unreachable() to show broken input file...
author
Rui Ueyama
<ruiu@google.com>
Fri, 2 Aug 2013 20:45:25 +0000
(20:45 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Fri, 2 Aug 2013 20:45:25 +0000
(20:45 +0000)
llvm-svn: 187670
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
patch
|
blob
|
history
diff --git
a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
index
4984f35
..
1148c2e
100644
(file)
--- a/
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+++ b/
lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
@@
-320,7
+320,7
@@
private:
for (COFFDefinedFileAtom *atom : atoms)
if (targetOffset < atom->originalOffset() + atom->size())
return atom;
- llvm
_unreachable
("Relocation target out of range");
+ llvm
::report_fatal_error
("Relocation target out of range");
}
/// Find the atom for the symbol that was at the \p index in the symbol