Lines Matching defs:OS
35 static void getNameWithPrefixImpl(raw_ostream &OS, const Twine &GVName,
45 OS << Name.substr(1);
53 OS << DL.getPrivateGlobalPrefix();
55 OS << DL.getLinkerPrivateGlobalPrefix();
58 OS << Prefix;
61 OS << Name;
64 static void getNameWithPrefixImpl(raw_ostream &OS, const Twine &GVName,
68 return getNameWithPrefixImpl(OS, GVName, PrefixTy, DL, Prefix);
71 void Mangler::getNameWithPrefix(raw_ostream &OS, const Twine &GVName,
73 return getNameWithPrefixImpl(OS, GVName, DL, Default);
78 raw_svector_ostream OS(OutName);
80 return getNameWithPrefixImpl(OS, GVName, Default, DL, Prefix);
96 static void addByteCountSuffix(raw_ostream &OS, const Function *F,
118 OS << '@' << ArgWords;
121 void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV,
141 getNameWithPrefixImpl(OS, "__unnamed_" + Twine(ID), DL, PrefixTy);
170 getNameWithPrefixImpl(OS, Name, PrefixTy, DL, Prefix);
179 OS << '@'; // vectorcall functions use a double @ suffix.
185 addByteCountSuffix(OS, MSFunc, DL);
191 raw_svector_ostream OS(OutName);
192 getNameWithPrefix(OS, GV, CannotUsePrivateLabel);
214 void llvm::emitLinkerFlagsForGlobalCOFF(raw_ostream &OS, const GlobalValue *GV,
219 OS << " /EXPORT:";
221 OS << " -export:";
225 OS << "\"";
232 OS << Flag.substr(1);
234 OS << Flag;
236 Mangler.getNameWithPrefix(OS, GV, false);
246 OS << ",EXPORTAS," << *demangledName;
249 OS << "\"";
253 OS << ",DATA";
255 OS << ",data";
260 OS << " -exclude-symbols:";
264 OS << "\"";
271 OS << Flag.substr(1);
273 OS << Flag;
276 OS << "\"";
280 void llvm::emitLinkerFlagsForUsedCOFF(raw_ostream &OS, const GlobalValue *GV,
285 OS << " /INCLUDE:";
288 OS << "\"";
289 M.getNameWithPrefix(OS, GV, false);
291 OS << "\"";