Revise comment and error message for the Bug 38 situation. Also, make it
print out the name of the function being used. llvm-svn: 12347
This commit is contained in:
parent
5d6345a01b
commit
afb74be0ce
|
@ -167,10 +167,11 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
|
||||||
// actually use the resolved function
|
// actually use the resolved function
|
||||||
Inst->replaceUsesOfWith(F, castResolver);
|
Inst->replaceUsesOfWith(F, castResolver);
|
||||||
} else {
|
} else {
|
||||||
// FIXME: need to take care of cases where a function is used that
|
// FIXME: need to take care of cases where a function is used by
|
||||||
// is not an instruction, e.g. global variable initializer...
|
// something other than an instruction; e.g., global variable
|
||||||
std::cerr <<
|
// initializers and constant expressions.
|
||||||
"UNSUPPORTED: External function used as global initializer!\n";
|
std::cerr << "UNSUPPORTED: Non-instruction is using an external "
|
||||||
|
<< "function, " << F->getName() << "().\n";
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue