[ms] Make mangleIntegerLiteral less aware of exact type of the literal.
authorNico Weber <nicolasweber@gmx.de>
Tue, 13 Nov 2012 22:09:44 +0000 (22:09 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 13 Nov 2012 22:09:44 +0000 (22:09 +0000)
commit3ad723ca2eebbef8c480574092888d290a18254e
treed90b5fdb7db562de89ad44e3279a953c30b35ac7
parentf1aef758a7902c73ef7f2dd568bef8ad47f93006
[ms] Make mangleIntegerLiteral less aware of exact type of the literal.

Integer literal mangling does not actually depend on exact type of the literal.
This will simplify calling mangleIntegerLiteral when literal type is not known,
for example, when sizes or offsets are mangled as integer literals.

Also, call mangleNumber instead of directly printing mangled values of 0/1, to
avoid this knowledge from being in multiple places.

Patch from Evgeny Eltsin!

llvm-svn: 167878
clang/lib/AST/MicrosoftMangle.cpp