OSDN Git Service

[COFF, Dwarf] Don't emit DW_AT_location for dllimported entities
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 9 Jul 2016 20:47:48 +0000 (20:47 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 9 Jul 2016 20:47:48 +0000 (20:47 +0000)
commit01d1f77974ba96b8da4bafac332fc368c76a66bd
treec84b10108b61ee4b0398eacf0ab9e363a15f188c
parent9dd11bf89099c28a71a788fee30ccd482d68e0ec
[COFF, Dwarf] Don't emit DW_AT_location for dllimported entities

There exists no relocation which can describe the address of a
dllimported variable: do not try to describe their location.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274986 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
test/DebugInfo/X86/dllimport.ll [new file with mode: 0644]