X86: Do not produce GOT relocations on windows
authorMatthias Braun <matze@braunis.de>
Mon, 3 Oct 2016 20:11:24 +0000 (20:11 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 3 Oct 2016 20:11:24 +0000 (20:11 +0000)
commiteccdee91960e28dd305d8daa5fc874a57ded65e9
treeebf0b97f756d41003123b983b02790a76aea27da
parentab5478a9c669e3e947140eaef22b68220834e73c
X86: Do not produce GOT relocations on windows

Windows has no GOT relocations the way elf/darwin has. Some people use
x86_64-pc-win32-macho to build EFI firmware; Do not produce GOT
relocations for this target.

Differential Revision: https://reviews.llvm.org/D24627

llvm-svn: 283140
llvm/lib/Target/TargetMachine.cpp
llvm/test/CodeGen/X86/x86-64-pic-12.ll [new file with mode: 0644]