aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-03-30 04:25:14 +0000
committerJohn McCall <rjmccall@apple.com>2012-03-30 04:25:14 +0000
commit9993cc7b56b6bcb73914d707eb3afb29c2f85db8 (patch)
tree46ac281b8b532082545f34ef3b8ee433e722ab17 /lib/CodeGen/CGDebugInfo.cpp
parent56ea377bc58a3a821da917599ed26c6b37b9727c (diff)
When emitting a static local variable in C++, handle
the case that the variable already exists. Partly this is just protection against people making crazy declarations with custom asm labels or extern "C" names that intentionally collide with the manglings of such variables, but the main reason is that we can actually emit a static local variable twice with the requirement that it match up. There may be other cases with (e.g.) the various nested functions, but the main exemplar is with constructor variants, where we can be forced into double-emitting the function body under certain circumstances like (currently) the presence of virtual bases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions