diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-16 01:49:05 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-16 01:49:05 +0000 |
commit | 3aa342be500a55c3bbee302f3a8db937eaa2c241 (patch) | |
tree | 67a3fdefd87ee3ae640e049750695e3cda468ca9 /test/CodeGen | |
parent | a486f55569c584d00cfdde43a8755d68cdb68c4f (diff) | |
download | external_llvm-3aa342be500a55c3bbee302f3a8db937eaa2c241.zip external_llvm-3aa342be500a55c3bbee302f3a8db937eaa2c241.tar.gz external_llvm-3aa342be500a55c3bbee302f3a8db937eaa2c241.tar.bz2 |
Add support for metadata representing .ident directives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/ident-metadata.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ident-metadata.ll b/test/CodeGen/X86/ident-metadata.ll new file mode 100644 index 0000000..211d882 --- /dev/null +++ b/test/CodeGen/X86/ident-metadata.ll @@ -0,0 +1,9 @@ +; RUN: llc -march=x86 < %s | FileCheck %s +; Verify that llvm.ident metadata is emitted as .ident +; directives in assembly files, and in the .comment section in ELF object files. + +; CHECK: .ident "clang version x.x" +; CHECK-NEXT: .ident "something else" +!llvm.ident = !{!0, !1} +!0 = metadata !{metadata !"clang version x.x"} +!1 = metadata !{metadata !"something else"} |