mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
b415e6b2f2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232535 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
325 B
ArmAsm
15 lines
325 B
ArmAsm
// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
|
|
|
.size bar, . - bar
|
|
.Ltmp01:
|
|
.size foo, .Ltmp01 - foo
|
|
.Ltmp0:
|
|
.size qux, .Ltmp0 - qux
|
|
|
|
// CHECK: .Ltmp0:
|
|
// CHECK: .size bar, .Ltmp0-bar
|
|
// CHECK: .Ltmp01
|
|
// CHECK: .size foo, .Ltmp01-foo
|
|
// CHECK: .Ltmp00
|
|
// CHECK: .size qux, .Ltmp00-qux
|