diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 03:58:36 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 03:58:36 +0000 |
| commit | fcc28218827b226092e27c77b5700e1f3c9c71b6 (patch) | |
| tree | a2d5726662a6aba217559804ce59a24ca832505b /llvm/lib | |
| parent | d45a3f1a030b4bdea0d02ab85d9ecebc55003904 (diff) | |
| download | bcm5719-llvm-fcc28218827b226092e27c77b5700e1f3c9c71b6.tar.gz bcm5719-llvm-fcc28218827b226092e27c77b5700e1f3c9c71b6.zip | |
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.
llvm-svn: 231750
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXSection.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 64bee0cebb9..85649492e23 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -714,8 +714,7 @@ void DwarfCompileUnit::collectDeadVariables(DISubprogram SP) { void DwarfCompileUnit::emitHeader(const MCSymbol *ASectionSym) { // Don't bother labeling the .dwo unit, as its offset isn't used. if (!Skeleton) { - LabelBegin = - Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID()); + LabelBegin = Asm->createTempSymbol("cu_begin", getUniqueID()); Asm->OutStreamer.EmitLabel(LabelBegin); } diff --git a/llvm/lib/Target/NVPTX/NVPTXSection.h b/llvm/lib/Target/NVPTX/NVPTXSection.h index 8bc6336ff73..6bb1e3dbb27 100644 --- a/llvm/lib/Target/NVPTX/NVPTXSection.h +++ b/llvm/lib/Target/NVPTX/NVPTXSection.h @@ -39,7 +39,6 @@ public: bool isBaseAddressKnownZero() const override { return true; } bool UseCodeAlign() const override { return false; } bool isVirtualSection() const override { return false; } - std::string getLabelBeginName() const override { return ""; } }; } // end namespace llvm |

