Get MCSymbol out of the mangling business, and move all the logic
authorChris Lattner <sabre@nondot.org>
Sun, 17 Jan 2010 19:23:46 +0000 (19:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Jan 2010 19:23:46 +0000 (19:23 +0000)
commitacd03ae6791fc0fb9f1b05247a1dc082b46b8d8b
treee6d0919df01249161c80b675e0d9a1e5f091e350
parentc7aa48da3f0d2daf00405e8b7ff823299245f547
Get MCSymbol out of the mangling business, and move all the logic
to Mangler.  Now MCSymbol just decides whether to slap quotes around
a symbol when printing it.

This also fixes some weirdness where two MCSymbols could be created
for the same symbol, if one needed to be mangled and got mangled to
the other one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93690 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSymbol.h
include/llvm/Target/Mangler.h
lib/MC/MCSymbol.cpp
lib/Target/CBackend/CBackend.cpp
lib/Target/Mangler.cpp
lib/Target/TargetLoweringObjectFile.cpp