From 9b638019ca8870f418e3b42b39dd34dc7deebb2d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 15 Mar 2002 20:21:29 +0000 Subject: [PATCH] Cleanup error message output a bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1879 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 2 +- lib/Transforms/Utils/Linker.cpp | 2 +- lib/VMCore/Linker.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index f265bb05d17..c98295cc66c 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -61,7 +61,7 @@ static bool LinkTypes(Module *Dest, const Module *Src, string *Err = 0) { if (Entry != RHS) // If it's the same, noop. Otherwise, error. return Error(Err, "Type named '" + Name + "' of different shape in modules.\n Src='" + - Entry->getDescription() + "'. Dest='" + + Entry->getDescription() + "'.\n Dst='" + RHS->getDescription() + "'"); } else { // Type not in dest module. Add it now. // TODO: FIXME WHEN TYPES AREN'T CONST diff --git a/lib/Transforms/Utils/Linker.cpp b/lib/Transforms/Utils/Linker.cpp index f265bb05d17..c98295cc66c 100644 --- a/lib/Transforms/Utils/Linker.cpp +++ b/lib/Transforms/Utils/Linker.cpp @@ -61,7 +61,7 @@ static bool LinkTypes(Module *Dest, const Module *Src, string *Err = 0) { if (Entry != RHS) // If it's the same, noop. Otherwise, error. return Error(Err, "Type named '" + Name + "' of different shape in modules.\n Src='" + - Entry->getDescription() + "'. Dest='" + + Entry->getDescription() + "'.\n Dst='" + RHS->getDescription() + "'"); } else { // Type not in dest module. Add it now. // TODO: FIXME WHEN TYPES AREN'T CONST diff --git a/lib/VMCore/Linker.cpp b/lib/VMCore/Linker.cpp index f265bb05d17..c98295cc66c 100644 --- a/lib/VMCore/Linker.cpp +++ b/lib/VMCore/Linker.cpp @@ -61,7 +61,7 @@ static bool LinkTypes(Module *Dest, const Module *Src, string *Err = 0) { if (Entry != RHS) // If it's the same, noop. Otherwise, error. return Error(Err, "Type named '" + Name + "' of different shape in modules.\n Src='" + - Entry->getDescription() + "'. Dest='" + + Entry->getDescription() + "'.\n Dst='" + RHS->getDescription() + "'"); } else { // Type not in dest module. Add it now. // TODO: FIXME WHEN TYPES AREN'T CONST -- 2.34.1