Use a better name for compile unit labels.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Mar 2015 03:58:36 +0000 (03:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Mar 2015 03:58:36 +0000 (03:58 +0000)
commit44292e80acfd76d3584054b059a9559f2f449390
tree467a42cc3125c4587b97cb255e650cf0f1d8d646
parentec53c65238657de17edc7109680cf8f16abaefa8
Use a better name for compile unit labels.

They mark the start of a compile unit, so name them .Lcu_*. Using
Section->getLabelBeginName() makes it looks like they mark the start of the
section.

While at it, switch to createTempSymbol to avoid collisions with labels
created in inline assembly. Not sure if a "don't crash" test is worth it.

With this getLabelBeginName is dead, delete it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231750 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSection.h
include/llvm/MC/MCSectionCOFF.h
include/llvm/MC/MCSectionELF.h
include/llvm/MC/MCSectionMachO.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/Target/NVPTX/NVPTXSection.h
test/DebugInfo/X86/dwarf-aranges.ll
test/DebugInfo/X86/dwarf-pubnames-split.ll
test/DebugInfo/X86/multiple-aranges.ll
test/DebugInfo/X86/ref_addr_relocation.ll
test/DebugInfo/X86/stmt-list-multiple-compile-units.ll