Make error message a bit nicer.
authorChris Lattner <sabre@nondot.org>
Mon, 29 Mar 2004 00:16:01 +0000 (00:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Mar 2004 00:16:01 +0000 (00:16 +0000)
Contributed by Reid Spencer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12523 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index 4a3a5c66d723f8c91b1d5920647c5a7b7856cb18..63d8b42c0420d8ed6145c931af26477903ba0b15 100644 (file)
@@ -303,7 +303,7 @@ void BytecodeParser::ParseSymbolTable(const unsigned char *&Buf,
         V = getValue(Typ, slot, false); // Find mapping...
       }
       if (V == 0)
-        throw std::string("Failed value look-up.");
+        throw "Failed value look-up for name '" + Name + "'";
       BCR_TRACE(4, "Map: '" << Name << "' to #" << slot << ":" << *V;
                 if (!isa<Instruction>(V)) std::cerr << "\n");