llvm-project/llvm/tools/dsymutil
Rafael Espindola 9ab09237dc Centralize the handling of unique ids for temporary labels.
Before this patch code wanting to create temporary labels for a given entity
(function, cu, exception range, etc) had to keep its own counter to have stable
symbol names.

createTempSymbol would still add a suffix to make sure a new symbol was always
returned, but it kept a single counter. Because of that, if we were to use
just createTempSymbol("cu_begin"), the label could change from cu_begin42 to
cu_begin43 because some other code started using temporary labels.

Simplify this by just keeping one counter per prefix and removing the various
specialized counters.

llvm-svn: 232535
2015-03-17 20:07:06 +00:00
..
BinaryHolder.cpp [dsymutil] Implement the BinaryHolder object and gain archive support. 2015-01-05 21:29:28 +00:00
BinaryHolder.h [dsymutil] Implement the BinaryHolder object and gain archive support. 2015-01-05 21:29:28 +00:00
CMakeLists.txt [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00
DebugMap.cpp [dsymutil] Add function size to the debug map. 2015-03-15 01:29:30 +00:00
DebugMap.h [dsymutil] Add an way to iterate over a DebugMapObject symbols. 2015-03-15 02:02:53 +00:00
DwarfLinker.cpp Centralize the handling of unique ids for temporary labels. 2015-03-17 20:07:06 +00:00
LLVMBuild.txt [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00
MachODebugMapParser.cpp [dsymutil] Add function size to the debug map. 2015-03-15 01:29:30 +00:00
Makefile [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00
dsymutil.cpp [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00
dsymutil.h [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00