diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-13 20:39:25 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-13 20:39:25 +0000 |
commit | cca5f68e5310b7ada3f0eb9b724d483c59da4f7b (patch) | |
tree | 41b960e652f431f0691d7f0e2dbea133489cd86d /llvm/lib/IR/DebugInfo.cpp | |
parent | 2c4487de6de9fbdc7cf2ee7d9ea6f462b2f425d6 (diff) | |
download | bcm5719-llvm-cca5f68e5310b7ada3f0eb9b724d483c59da4f7b.tar.gz bcm5719-llvm-cca5f68e5310b7ada3f0eb9b724d483c59da4f7b.zip |
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.
llvm-svn: 234796
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index d7f5f6396aa..20467c93adb 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -49,10 +49,6 @@ bool DIVariable::isInlinedFnArgument(const Function *CurFn) { return !SP.describes(CurFn); } -GlobalVariable *DIGlobalVariable::getGlobal() const { - return dyn_cast_or_null<GlobalVariable>(getConstant()); -} - void DICompileUnit::replaceSubprograms(DIArray Subprograms) { get()->replaceSubprograms(MDSubprogramArray(Subprograms)); } |