Target/X86/X86FastISel: [PR6275] Fix Win32's dllimport function with fastisel.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Feb 2011 04:50:06 +0000 (04:50 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Feb 2011 04:50:06 +0000 (04:50 +0000)
commitd64cfe1506daf95483549e7347098fbf1a978097
tree3480ceba94e4594a1de875aff18dc9eab0002dc4
parent58269b973256bf2436cac0f047aa277fe4bc01dd
Target/X86/X86FastISel: [PR6275] Fix Win32's dllimport function with fastisel.

"dllimport" function must not be GlobalVariable, but Function. It is enough to check with GlobalValue.
test/CodeGen/X86/dll-linkage.ll is updated to check llc -O0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126110 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/dll-linkage.ll