[llvm] r208463 - Fix llvm-nm to print the full 64-bit address for symbols in 64-bit object files.
Rafael EspĂndola
rafael.espindola at gmail.com
Fri May 9 19:08:57 PDT 2014
> +static char isSymbolList64Bit(SymbolicFile *Obj) {
> + if (dyn_cast<IRObjectFile>(Obj))
> + return false;
> + else if (dyn_cast<COFFObjectFile>(Obj))
> + return false;
> + else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj))
> + return MachO->is64Bit();
> + else if (dyn_cast<ELF32LEObjectFile>(Obj))
> + return false;
> + else if (dyn_cast<ELF64LEObjectFile>(Obj))
> + return true;
> + else if (dyn_cast<ELF32BEObjectFile>(Obj))
> + return false;
> + else if(dyn_cast<ELF64BEObjectFile>(Obj))
> + return true;
> + else
> + return false;
> +}
Some of these could be isa<>.
Thanks,
Rafael
More information about the llvm-commits
mailing list