[PATCH] D24849: Make CanUseCopyRelocWithPIE a llc option, -pie-copy-relocations

Sriraman Tallam via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 15:11:03 PDT 2016


tmsriram updated this revision to Diff 74447.
tmsriram added a comment.

- Check for isa<GlobalVariable> rather than !isa<Function>
- Test case for Global Alias is not required as alias implies the aliased object is defined and is hence DSO local.


https://reviews.llvm.org/D24849

Files:
  include/llvm/MC/MCTargetOptions.h
  include/llvm/MC/MCTargetOptionsCommandFlags.h
  lib/MC/MCTargetOptions.cpp
  lib/Target/TargetMachine.cpp
  test/CodeGen/X86/global-access-pie-copyrelocs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24849.74447.patch
Type: text/x-patch
Size: 6608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161012/aaa2e195/attachment.bin>


More information about the llvm-commits mailing list