OSDN Git Service

DebugInfo: Remove DIGlobalVariable::getGlobal()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 13 Apr 2015 20:39:25 +0000 (20:39 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 13 Apr 2015 20:39:25 +0000 (20:39 +0000)
commit7153e0d49b735df94eabd501a3ff984654dcf22c
tree9cf88bc5f24621aa0868bfcebee2f722b77b264f
parent57ea789c3e1fb4f5e4a2fe4d7e9fb356d571247d
DebugInfo: Remove DIGlobalVariable::getGlobal()

`DIGlobalVariable::getGlobal()` isn't really helpful, it just does a
`dyn_cast_or_null<>`.  Simplify its only user by doing the cast directly
and delete the code.

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