Change the X86 asmprinter to use the mangler to apply suffixes like "$non_lazy_ptr"
authorChris Lattner <sabre@nondot.org>
Tue, 14 Jul 2009 06:04:35 +0000 (06:04 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Jul 2009 06:04:35 +0000 (06:04 +0000)
commit03e9dd9ffae4370bf53bcdf04504e5ad908a1ec6
tree0d1dbf0fa27121183c6d5fce5e791e854c15ce20
parentd23f0d0451a4ffc0c12d7a73559fa35587ce7abb
Change the X86 asmprinter to use the mangler to apply suffixes like "$non_lazy_ptr"
to symbols instead of doing it with "printSuffixedName".  This gets us to the point
where there is a real separation between computing a symbol name and printing it,
something I need for MC printer stuff.

This patch also fixes a corner case bug where unnamed private globals wouldn't get
the private label prefix.

Next up, rename all uses of getValueName -> getMangledName for better greppability,
and then tackle the ppc/arm backends to eliminate "printSuffixedName".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75610 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Mangler.h
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
lib/VMCore/Mangler.cpp
test/CodeGen/X86/loop-hoist.ll