diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-04-09 11:26:27 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-04-09 11:26:27 +0000 |
commit | c18214a6e0a22ffa6886c70dbd6176ac9e91c847 (patch) | |
tree | fc1a9439337cf008919eee538a68f0eda7b21fb3 /test | |
parent | cc513e1cf19bbdab83c5336455196e0e91d57f32 (diff) | |
download | external_llvm-c18214a6e0a22ffa6886c70dbd6176ac9e91c847.zip external_llvm-c18214a6e0a22ffa6886c70dbd6176ac9e91c847.tar.gz external_llvm-c18214a6e0a22ffa6886c70dbd6176ac9e91c847.tar.bz2 |
Don't store Twine temporaries, it's not safe.
And don't append the name over and over again in the loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/rename.s | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/MC/AsmParser/rename.s b/test/MC/AsmParser/rename.s index 64ca515..934cee8 100644 --- a/test/MC/AsmParser/rename.s +++ b/test/MC/AsmParser/rename.s @@ -1,10 +1,14 @@ // RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s .size bar, . - bar +.Ltmp01: + .size foo, .Ltmp01 - foo .Ltmp0: - .size foo, .Ltmp0 - foo + .size qux, .Ltmp0 - qux // CHECK: .Ltmp0: // CHECK: .size bar, .Ltmp0-bar // CHECK: .Ltmp01 // CHECK: .size foo, .Ltmp01-foo +// CHECK: .Ltmp02 +// CHECK: .size qux, .Ltmp02-qux |