Cleanup error message output a bit
authorChris Lattner <sabre@nondot.org>
Fri, 15 Mar 2002 20:21:29 +0000 (20:21 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 15 Mar 2002 20:21:29 +0000 (20:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp
lib/Transforms/Utils/Linker.cpp
lib/VMCore/Linker.cpp

index f265bb05d17b6d020bd8d9f3559e9544a214e60d..c98295cc66c60ba005ef9bcd9f35b128eda9c5ab 100644 (file)
@@ -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
index f265bb05d17b6d020bd8d9f3559e9544a214e60d..c98295cc66c60ba005ef9bcd9f35b128eda9c5ab 100644 (file)
@@ -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
index f265bb05d17b6d020bd8d9f3559e9544a214e60d..c98295cc66c60ba005ef9bcd9f35b128eda9c5ab 100644 (file)
@@ -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