mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 05:24:22 +00:00
Simplify another function that doesn't fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -204,9 +204,10 @@ static void dumpCXXData(const ObjectFile *Obj) {
|
||||
StringRef SecContents;
|
||||
if (error(Sec.getContents(SecContents)))
|
||||
return;
|
||||
uint64_t SymAddress, SymSize;
|
||||
if (error(Sym.getAddress(SymAddress)) || error(Sym.getSize(SymSize)))
|
||||
uint64_t SymAddress;
|
||||
if (error(Sym.getAddress(SymAddress)))
|
||||
return;
|
||||
uint64_t SymSize = Sym.getSize();
|
||||
uint64_t SecAddress = Sec.getAddress();
|
||||
uint64_t SecSize = Sec.getSize();
|
||||
uint64_t SymOffset = SymAddress - SecAddress;
|
||||
|
Reference in New Issue
Block a user