[PATCH] D42183: [LLD] [ELF] Pass CPU string to LTO pipeline.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 18:25:07 PST 2018


Pratik Bhatu via Phabricator via llvm-commits
<llvm-commits at lists.llvm.org> writes:


> +std::string lld::GetCPUStr() {
> +  return ::getCPUStr();
> +}

clang-format this.

> +; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared

The -m is not necessary.

> +; RUN: llvm-objdump -d -section=".text" -no-leading-addr -no-show-raw-insn %t.so | FileCheck %s
> +
> +; RUN: ld.lld -mllvm -mcpu=znver1 -m elf_x86_64 %t.o -o %m.so -shared

The -m is not necessary.

LGTM with that. Do you have commit access?

Thanks,
Rafael


More information about the llvm-commits mailing list