Lines Matching refs:OutName

40 static void MangleLetter(SmallVectorImpl<char> &OutName, unsigned char C) {
41 OutName.push_back('_');
42 OutName.push_back(HexDigit(C >> 4));
43 OutName.push_back(HexDigit(C & 15));
44 OutName.push_back('_');
69 static void appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str,
74 MangleLetter(OutName, Str[0]);
82 MangleLetter(OutName, Str[i]);
84 OutName.push_back(Str[i]);
92 static void appendMangledQuotedName(SmallVectorImpl<char> &OutName,
96 MangleLetter(OutName, Str[i]);
98 OutName.push_back(Str[i]);
103 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
106 void Mangler::getNameWithPrefix(SmallVectorImpl<char> &OutName,
120 OutName.append(Prefix, Prefix+strlen(Prefix));
123 OutName.append(Prefix, Prefix+strlen(Prefix));
130 OutName.push_back(Prefix[0]); // Common, one character prefix.
132 OutName.append(Prefix, Prefix+strlen(Prefix)); // Arbitrary length prefix.
141 OutName.append(Name.begin(), Name.end());
148 return appendMangledName(OutName, Name, MAI);
153 return appendMangledQuotedName(OutName, Name);
159 static void AddFastCallStdCallSuffix(SmallVectorImpl<char> &OutName,
173 raw_svector_ostream(OutName) << '@' << ArgWords;
177 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
180 void Mangler::getNameWithPrefix(SmallVectorImpl<char> &OutName,
191 getNameWithPrefix(OutName, GV->getName(), PrefixTy);
199 getNameWithPrefix(OutName, "__unnamed_" + Twine(ID), PrefixTy);
211 if (OutName[0] == '_')
212 OutName[0] = '@';
214 OutName.insert(OutName.begin(), '@');
224 AddFastCallStdCallSuffix(OutName, F, TD);