]> granicus.if.org Git - llvm/commit
IR: Drop the scope in DI template parameters
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 18 Feb 2015 20:30:45 +0000 (20:30 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 18 Feb 2015 20:30:45 +0000 (20:30 +0000)
commit87356edf7422426df490c7548112649fb317549f
treeed6cac0f704019bf8bc2d84a95c54bdb006dc58e
parentf866bfc6aab20cddad1ee7e2e8d705be247d635b
IR: Drop the scope in DI template parameters

The scope/context is always the compile unit, which we replace with
`nullptr` anyway (via `getNonCompileUnitScope()`).  Drop it explicitly.

I noticed this field was always null while writing testcase upgrade
scripts to transition to the new hierarchy.  Seems wasteful to
transition it over if it's already out-of-use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229740 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
lib/IR/DIBuilder.cpp
lib/IR/DebugInfo.cpp