void MIPrinter::printSyncScope(const LLVMContext &Context, SyncScope::ID SSID) { switch (SSID) { case SyncScope::System: { break; } default: { if (SSNs.empty()) Context.getSyncScopeNames(SSNs); OS << "syncscope(\""; PrintEscapedString(SSNs[SSID], OS); OS << "\") "; break; } } }
static void printSyncScope(raw_ostream &OS, const LLVMContext &Context, SyncScope::ID SSID, SmallVectorImpl<StringRef> &SSNs) { switch (SSID) { case SyncScope::System: break; default: if (SSNs.empty()) Context.getSyncScopeNames(SSNs); OS << "syncscope(\""; printEscapedString(SSNs[SSID], OS); OS << "\") "; break; } }