llvm-6502/lib
Chris Lattner 04cb800c32 This fixes PR531, a crash when running the CBE on a bytecode file.
The problem is that Function::renameLocalSymbols is iterating through
the symbol table planes, occasionally calling setName to rename a value
(which used to do a symbol table remove/insert pair).

The problem is that if there is only a single value in a particular type
plane that the remove will nuke the symbol table plane, and the insert
will create and insert a new one.  This hoses Function::renameLocalSymbols
because it has an iterator to the old plane, under the (very reasonable)
assumption that simply renaming a value won't cause the type plane to
disappear.

This patch fixes the bug by making the rename operation a single atomic
operation, which has a side effect of making the whole thing faster too. :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20469 91177308-0d34-0410-b5e6-96231b3b80d8
2005-03-06 02:14:28 +00:00
..
Analysis Make sure the two arguments of a setcc instruction point to the same node. 2005-03-05 19:04:31 +00:00
Archive Implement an isBytecodeArchive method to determine if an archive contains 2005-02-26 22:00:32 +00:00
AsmParser zap 2005-03-05 19:04:07 +00:00
Bytecode second argument to Value::setName is now gone. 2005-03-05 19:05:20 +00:00
CodeGen Lower llvm.isunordered(a, b) into a != a | b != b. 2005-03-01 02:07:58 +00:00
Debugger Correct the comments and file header. 2004-12-23 21:16:46 +00:00
ExecutionEngine Use const iterators where possible. Patch by Evan Jones! 2005-02-27 19:06:10 +00:00
Linker Add support for ".so" files compiled with LLVM which contain LLVM bytecode. 2005-02-19 18:30:29 +00:00
Support Remove some stuff I checked in accidentally 2005-02-27 04:32:35 +00:00
System Be slightly more accurate in an error message. 2005-03-02 05:45:56 +00:00
Target don't break the build on 32-bit hosts. 2005-03-05 17:47:38 +00:00
Transforms Reformat comments to fix 80 columns. 2005-03-05 22:45:40 +00:00
VMCore This fixes PR531, a crash when running the CBE on a bytecode file. 2005-03-06 02:14:28 +00:00
Makefile Add the Linker library 2004-11-14 21:54:41 +00:00