Lines Matching refs:ProgName
101 const DriverSuffix *FindDriverSuffix(StringRef ProgName) { in FindDriverSuffix() argument
121 if (ProgName.endswith(DriverSuffixes[i].Suffix)) in FindDriverSuffix()
129 std::string ProgName = llvm::sys::path::stem(Argv0); in normalizeProgramName() local
132 std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(), ::tolower); in normalizeProgramName()
134 return ProgName; in normalizeProgramName()
137 const DriverSuffix *parseDriverSuffix(StringRef ProgName) { in parseDriverSuffix() argument
145 const DriverSuffix *DS = FindDriverSuffix(ProgName); in parseDriverSuffix()
150 ProgName = ProgName.rtrim("0123456789."); in parseDriverSuffix()
151 DS = FindDriverSuffix(ProgName); in parseDriverSuffix()
157 ProgName = ProgName.slice(0, ProgName.rfind('-')); in parseDriverSuffix()
158 DS = FindDriverSuffix(ProgName); in parseDriverSuffix()
166 std::string ProgName = normalizeProgramName(PN); in getTargetAndModeFromProgramName() local
167 const DriverSuffix *DS = parseDriverSuffix(ProgName); in getTargetAndModeFromProgramName()
173 ProgName.rfind('-', ProgName.size() - strlen(DS->Suffix)); in getTargetAndModeFromProgramName()
178 StringRef Prefix(ProgName); in getTargetAndModeFromProgramName()