Actually print the function _name_ if there is a problem

llvm-svn: 5443
This commit is contained in:
Chris Lattner 2003-01-30 21:33:07 +00:00
parent 26a1fe3494
commit 47948952dd
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals,
//
for (unsigned i = 0; i < OldMT->getParamTypes().size(); ++i)
if (OldMT->getParamTypes()[i] != ConcreteMT->getParamTypes()[i]) {
std::cerr << "Parameter types conflict for: '" << OldMT
std::cerr << "funcresolve: Function [" << Old->getName()
<< "]: Parameter types conflict for: '" << OldMT
<< "' and '" << ConcreteMT << "'\n";
return Changed;
}