summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-04-09 11:26:27 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-04-09 11:26:27 +0000
commitc18214a6e0a22ffa6886c70dbd6176ac9e91c847 (patch)
treefc1a9439337cf008919eee538a68f0eda7b21fb3 /test/MC
parentcc513e1cf19bbdab83c5336455196e0e91d57f32 (diff)
downloadllvm-c18214a6e0a22ffa6886c70dbd6176ac9e91c847.tar.gz
llvm-c18214a6e0a22ffa6886c70dbd6176ac9e91c847.tar.bz2
llvm-c18214a6e0a22ffa6886c70dbd6176ac9e91c847.tar.xz
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/MC')
-rw-r--r--test/MC/AsmParser/rename.s6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/MC/AsmParser/rename.s b/test/MC/AsmParser/rename.s
index 64ca515381..934cee808b 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