Use printable names to implement directional labels.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 13 Mar 2014 18:09:26 +0000 (18:09 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 13 Mar 2014 18:09:26 +0000 (18:09 +0000)
commit7e9df19d5f935c52ed4f550997f944930874146d
tree4ab114134209b45f53116b8c760bae6e4f2ba591
parent1fa9a14308df8bb7c5abba7d814b79116341aefa
Use printable names to implement directional labels.

This changes the implementation of local directional labels to use a dedicated
map. With that it can then just use CreateTempSymbol, which is what the rest
of MC uses.

CreateTempSymbol doesn't do a great job at making sure the names are unique
(or being efficient when the names are not needed), but that should probably
be fixed in a followup patch.

This fixes pr18928.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203826 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
lib/MC/MCContext.cpp
lib/MC/MCParser/AsmParser.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/X86/intel-syntax-directional-label.s