summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-shlib/libllvm.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-10-23 16:39:49 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-10-23 16:39:49 +0000
commit3813b2650f57043cb52654615bdd486d7027a558 (patch)
treeed0df058a5ce12860bc9908607a2a016b300f3ce /llvm/tools/llvm-shlib/libllvm.cpp
parentbcfa8a56b14261230338701369ed693e958475a0 (diff)
downloadbcm5719-llvm-3813b2650f57043cb52654615bdd486d7027a558.tar.gz
bcm5719-llvm-3813b2650f57043cb52654615bdd486d7027a558.zip
DebugInfo: Correctly describe the lexical decl context of static member variable definitions.
The previous IR representation used the non-lexical decl context, which placed the definitions in the same scope as the declarations (ie: within the class) - this was hidden by the fact that LLVM currently doesn't respect the context of global variable definitions at all, and always puts them at the top level (as direct children of the compile_unit). Having the correct lexical scope improves source fidelity and simplify backend global variable emission (with changes coming shortly). Doing something similar for non-member global variables would help simplify/cleanup things further (see FIXME in the commit) and provide similar source fidelity benefits to the final debug info. llvm-svn: 220488
Diffstat (limited to 'llvm/tools/llvm-shlib/libllvm.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud