Lines Matching full:outname
41 static void MangleLetter(SmallVectorImpl<char> &OutName, unsigned char C) {
42 OutName.push_back('_');
43 OutName.push_back(HexDigit(C >> 4));
44 OutName.push_back(HexDigit(C & 15));
45 OutName.push_back('_');
70 static void appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str,
75 MangleLetter(OutName, Str[0]);
83 MangleLetter(OutName, Str[i]);
85 OutName.push_back(Str[i]);
93 static void appendMangledQuotedName(SmallVectorImpl<char> &OutName,
97 MangleLetter(OutName, Str[i]);
99 OutName.push_back(Str[i]);
104 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
107 void Mangler::getNameWithPrefix(SmallVectorImpl<char> &OutName,
122 OutName.append(Prefix, Prefix+strlen(Prefix));
125 OutName.append(Prefix, Prefix+strlen(Prefix));
133 OutName.push_back(Prefix[0]); // Common, one character prefix.
136 OutName.append(Prefix, Prefix+strlen(Prefix));
146 OutName.append(Name.begin(), Name.end());
153 return appendMangledName(OutName, Name, MAI);
158 return appendMangledQuotedName(OutName, Name);
164 static void AddFastCallStdCallSuffix(SmallVectorImpl<char> &OutName,
178 raw_svector_ostream(OutName) << '@' << ArgWords;
182 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
185 void Mangler::getNameWithPrefix(SmallVectorImpl<char> &OutName,
197 getNameWithPrefix(OutName, Name, PrefixTy, UseGlobalPrefix);
209 getNameWithPrefix(OutName, "__unnamed_" + Twine(ID), PrefixTy,
222 if (OutName[0] == '_')
223 OutName[0] = '@';
225 OutName.insert(OutName.begin(), '@');
235 AddFastCallStdCallSuffix(OutName, F, *TM->getDataLayout());