[llvm-commits] CVS: llvm/lib/Transforms/Utils/Linker.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 20 12:24:02 PST 2003
Changes in directory llvm/lib/Transforms/Utils:
Linker.cpp updated: 1.63 -> 1.64
---
Log message:
Spew symbolic types!
---
Diffs of the changes: (+8 -3)
Index: llvm/lib/Transforms/Utils/Linker.cpp
diff -u llvm/lib/Transforms/Utils/Linker.cpp:1.63 llvm/lib/Transforms/Utils/Linker.cpp:1.64
--- llvm/lib/Transforms/Utils/Linker.cpp:1.63 Tue Nov 11 16:41:34 2003
+++ llvm/lib/Transforms/Utils/Linker.cpp Thu Nov 20 12:23:14 2003
@@ -17,11 +17,12 @@
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Utils/Linker.h"
+#include "llvm/Constants.h"
+#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/SymbolTable.h"
-#include "llvm/DerivedTypes.h"
#include "llvm/iOther.h"
-#include "llvm/Constants.h"
+#include "llvm/Assembly/Writer.h"
namespace llvm {
@@ -239,7 +240,11 @@
const Type *T1 = cast<Type>(VM.find(Name)->second);
const Type *T2 = cast<Type>(DestST->lookup(Type::TypeTy, Name));
std::cerr << "WARNING: Type conflict between types named '" << Name
- << "'.\n Src='" << *T1 << "'.\n Dest='" << *T2 << "'\n";
+ << "'.\n Src='";
+ WriteTypeSymbolic(std::cerr, T1, Src);
+ std::cerr << "'.\n Dest='";
+ WriteTypeSymbolic(std::cerr, T2, Dest);
+ std::cerr << "'\n";
// Remove the symbol name from the destination.
DelayedTypesToResolve.pop_back();
More information about the llvm-commits
mailing list