[llvm] r246283 - Re-apply r246276 - Object: Teach llvm-ar to create symbol table for COFF short import files

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 07:53:06 PDT 2015


> +  std::error_code printSymbolName(raw_ostream &OS,
> +                                  DataRefImpl Symb) const override {
> +    if (Symb.p == 1)
> +      OS << "__imp_";
> +    OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header));
> +    return std::error_code();
> +  }

Nothing updates Data, so won't this print the first name over and over?

Cheers,
Rafael


More information about the llvm-commits mailing list