blob: eec7844e75ae27449430f82cfc7fa4f15235c18b [file] [log] [blame]
Chris Lattnerb3cd2c12002-02-13 20:35:17 +00001/* This triggered a problem in reload, fixed by disabling most of the
2 * steps of compilation in GCC. Before this change, the code went through
Misha Brukman5560c9d2003-08-18 14:43:39 +00003 * the entire backend of GCC, even though it was unnecessary for LLVM output
Chris Lattnerb3cd2c12002-02-13 20:35:17 +00004 * now it is skipped entirely, and since reload doesn't run, it can't cause
5 * a problem.
6 */
7
8extern int tolower(int);
9
10const char *rangematch(const char *pattern, int test, int c) {
11
12 if ((c <= test) | (tolower(c) <= tolower((unsigned char)test)))
13 return 0;
14
15 return pattern;
16}