Eliminate AsmPrinter::EmitExternalGlobal, inlining its (now)
authorChris Lattner <sabre@nondot.org>
Wed, 16 Sep 2009 00:17:39 +0000 (00:17 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 16 Sep 2009 00:17:39 +0000 (00:17 +0000)
commit1c90c6f1c530e22aea5be055004b2517e77a0f02
tree816d76b3ac25490cf4488f47d417b97e96cd6f48
parent1633076c47f10a8d8735e81588e9cb07ac32efc8
Eliminate AsmPrinter::EmitExternalGlobal, inlining its (now)
one implementation into its one caller.  This eliminates a totally
awesome and gratuitous hack where we casted a Function* to
GlobalVariable*.

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