mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
Don't return error_code from a function that doesn't fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -707,10 +707,7 @@ DWARFContextInMemory::DWARFContextInMemory(const object::ObjectFile &Obj,
|
||||
object::RelocToApply R(V.visit(Type, Reloc, SymAddr));
|
||||
if (V.error()) {
|
||||
SmallString<32> Name;
|
||||
std::error_code ec(Reloc.getTypeName(Name));
|
||||
if (ec) {
|
||||
errs() << "Aaaaaa! Nameless relocation! Aaaaaa!\n";
|
||||
}
|
||||
Reloc.getTypeName(Name);
|
||||
errs() << "error: failed to compute relocation: "
|
||||
<< Name << "\n";
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user