OSDN Git Service

[CodeView] Emit global variables within lexical scopes to limit visibility
authorBrock Wyma <brock.wyma@intel.com>
Thu, 20 Dec 2018 17:33:45 +0000 (17:33 +0000)
committerBrock Wyma <brock.wyma@intel.com>
Thu, 20 Dec 2018 17:33:45 +0000 (17:33 +0000)
commit959a4129de63789d1eea64209a733ea96cf8d24b
tree1c53fd4fc6f52f907ecaca1cfea8bf8e429c05a9
parentdfccb77250a88cdf2bc1482c10de768cb875704d
[CodeView] Emit global variables within lexical scopes to limit visibility

Emit static locals within the correct lexical scope so variables with the same
name will not confuse the debugger into getting the wrong value.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349777 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
lib/CodeGen/AsmPrinter/CodeViewDebug.h
test/DebugInfo/COFF/global_visibility.ll [new file with mode: 0644]
test/DebugInfo/COFF/type-quals.ll