reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
250 BeginEmitFunction(OS, "StringRef", "getPatternForIndex(unsigned Index)", 252 OS << "{\n"; 253 OS << "static const char * PATTERN_MATCH_TABLE[] = {\n"; 256 OS << "\"" << It.first << "\",\n"; 259 OS << "\n};"; 260 OS << "\nreturn StringRef(PATTERN_MATCH_TABLE[Index]);"; 261 OS << "\n}\n"; 262 EndEmitFunction(OS); 264 BeginEmitFunction(OS, "StringRef", "getIncludePathForIndex(unsigned Index)", 266 OS << "{\n"; 267 OS << "static const char * INCLUDE_PATH_TABLE[] = {\n"; 270 OS << "\"" << It << "\",\n"; 273 OS << "\n};"; 274 OS << "\nreturn StringRef(INCLUDE_PATH_TABLE[Index]);"; 275 OS << "\n}\n"; 276 EndEmitFunction(OS);