[PATCH] D33373: [lld] Infer relocation model from module flags in relocatable LTO link

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 17:48:43 PDT 2017


eugenis added inline comments.


================
Comment at: test/ELF/lto/relocation-model-pic.ll:3-6
+; RUN: cat %s >%t.pic.ll
+; RUN: echo '!llvm.module.flags = !{!0}' >>%t.pic.ll
+; RUN: echo '!0 = !{i32 1, !"PIC Level", i32 2}' >>%t.pic.ll
+
----------------
davide wrote:
> can't this be a separate input in living in `Inputs/` ?
It can, but then the reader has to go and find this other file to understand what's going on in the test...
I can do it if you feel strongly about it.



Repository:
  rL LLVM

https://reviews.llvm.org/D33373





More information about the llvm-commits mailing list