mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
Add an ELFSymbolRef type.
This allows user code to say Sym.getSize() instead of having to manually fetch the object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1149,8 +1149,8 @@ void llvm::PrintSymbolTable(const ObjectFile *o) {
|
||||
|
||||
outs() << '\t';
|
||||
if (Common || isa<ELFObjectFileBase>(o)) {
|
||||
uint64_t Val = Common ? Symbol.getAlignment()
|
||||
: cast<ELFObjectFileBase>(o)->getSymbolSize(Symbol);
|
||||
uint64_t Val =
|
||||
Common ? Symbol.getAlignment() : ELFSymbolRef(Symbol).getSize();
|
||||
outs() << format("\t %08" PRIx64 " ", Val);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user