Provide an Objective C mangling for wchar_t. Patch by Nico Weber!

llvm-svn: 105818
This commit is contained in:
John McCall 2010-06-11 10:11:05 +00:00
parent 6d1116ac49
commit dad856dba3
2 changed files with 2 additions and 0 deletions

View File

@ -3477,6 +3477,7 @@ static char ObjCEncodingForPrimitiveKind(const ASTContext *C, QualType T) {
case BuiltinType::Char_S:
case BuiltinType::SChar: return 'c';
case BuiltinType::Short: return 's';
case BuiltinType::WChar:
case BuiltinType::Int: return 'i';
case BuiltinType::Long:
return

View File

@ -45,3 +45,4 @@ template <typename T> struct EncodeTest {
template struct EncodeTest<int>;
template struct EncodeTest<double>;
template struct EncodeTest<wchar_t>;