Make error msg nicer

llvm-svn: 326
This commit is contained in:
Chris Lattner 2001-07-28 17:52:14 +00:00
parent a4b4e46e90
commit b3d06b4ec9

View File

@ -103,8 +103,8 @@ void SymbolTable::insert(Value *N) {
// TODO: The typeverifier should catch this when its implemented // TODO: The typeverifier should catch this when its implemented
if (lookup(N->getType(), N->getName())) { if (lookup(N->getType(), N->getName())) {
cerr << "SymbolTable WARNING: Name already in symbol table: '" cerr << "SymbolTable ERROR: Name already in symbol table: '"
<< N->getName() << "'\n"; << N->getName() << "' for type '" << N->getType()->getName() << "'\n";
abort(); // TODO: REMOVE THIS abort(); // TODO: REMOVE THIS
} }