diff options
author | Artur Pilipenko <apilipenko@azulsystems.com> | 2015-08-03 14:31:49 +0000 |
---|---|---|
committer | Artur Pilipenko <apilipenko@azulsystems.com> | 2015-08-03 14:31:49 +0000 |
commit | 17376c4e021b4357ae44c300c7316a53a1fab651 (patch) | |
tree | a66160d5d4e51ed12ee002dd8ad83d47ee4eb366 /llvm/test/Bitcode/attributes.ll | |
parent | 8567a000b9a554ff6eed3dc31af60b37e041e5f8 (diff) | |
download | bcm5719-llvm-17376c4e021b4357ae44c300c7316a53a1fab651.tar.gz bcm5719-llvm-17376c4e021b4357ae44c300c7316a53a1fab651.zip |
Currently string attributes on function arguments/return values can be generated using LLVM API. However they are not supported in parser. So, the following scenario will fail:
* generate function with string attribute using API,
* dump it in LL format,
* try to parse.
Add parser support for string attributes to fix the issue.
Reviewed By: reames, hfinkel
Differential Revision: http://reviews.llvm.org/D11058
llvm-svn: 243877
Diffstat (limited to 'llvm/test/Bitcode/attributes.ll')
-rw-r--r-- | llvm/test/Bitcode/attributes.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/attributes.ll b/llvm/test/Bitcode/attributes.ll index a0bc66642f7..0cf0745175e 100644 --- a/llvm/test/Bitcode/attributes.ll +++ b/llvm/test/Bitcode/attributes.ll @@ -262,6 +262,16 @@ define void @f44() argmemonly ret void; } +; CHECK: define "string_attribute" void @f45(i32 "string_attribute") +define "string_attribute" void @f45(i32 "string_attribute") { + ret void +} + +; CHECK: define "string_attribute_with_value"="value" void @f46(i32 "string_attribute_with_value"="value") +define "string_attribute_with_value"="value" void @f46(i32 "string_attribute_with_value"="value") { + ret void +} + ; CHECK: attributes #0 = { noreturn } ; CHECK: attributes #1 = { nounwind } ; CHECK: attributes #2 = { readnone } |