diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-01 20:46:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-01 20:46:11 +0000 |
commit | 9f44724be058d17944dcd9ef6a6b57734b3744b8 (patch) | |
tree | fb7b54f0a532e73d3c447128e05fc591263b6adb /test | |
parent | 871498e2cede09420fe70fb8aea99725a8422e94 (diff) | |
download | external_llvm-9f44724be058d17944dcd9ef6a6b57734b3744b8.zip external_llvm-9f44724be058d17944dcd9ef6a6b57734b3744b8.tar.gz external_llvm-9f44724be058d17944dcd9ef6a6b57734b3744b8.tar.bz2 |
Rename temporary symbols if they conflict with artificial symbols created
by the assembler. This was blocking parsing any large .s produced by clang for
example.
Fixes PR8596.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/rename.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/AsmParser/rename.s b/test/MC/AsmParser/rename.s new file mode 100644 index 0000000..64ca515 --- /dev/null +++ b/test/MC/AsmParser/rename.s @@ -0,0 +1,10 @@ +// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + + .size bar, . - bar +.Ltmp0: + .size foo, .Ltmp0 - foo + +// CHECK: .Ltmp0: +// CHECK: .size bar, .Ltmp0-bar +// CHECK: .Ltmp01 +// CHECK: .size foo, .Ltmp01-foo |