hoist handling of external globals and special globals up to common code.
authorChris Lattner <sabre@nondot.org>
Tue, 19 Jan 2010 04:39:15 +0000 (04:39 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Jan 2010 04:39:15 +0000 (04:39 +0000)
commit48d64ba9d846229339b2431b298620cb8a01ffc5
tree604d4db965eed12c4ce27a78e96ac0d9b66c487c
parent71eae713153e564ec743c5c4162ff258c255de78
hoist handling of external globals and special globals up to common code.
This makes a similar code dead in all the other targets, I'll clean it up
in a bit.

This also moves handling of lcomm up before acquisition of a section,
since lcomm never needs a section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93851 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp