]> granicus.if.org Git - llvm/commitdiff
Actually print the function _name_ if there is a problem
authorChris Lattner <sabre@nondot.org>
Thu, 30 Jan 2003 21:33:07 +0000 (21:33 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 30 Jan 2003 21:33:07 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5443 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionResolution.cpp

index 75a3283c9f4b47d9262b80566a7cea9135b09d75..9527ad2135c39db642e250ff41decf10f18e2d40 100644 (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;
         }