Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: test/NaCl/PNaClABI/abi-metadata.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/NaCl/PNaClABI/abi-i1-operations.ll ('k') | test/NaCl/PNaClABI/abi-small-arguments.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/PNaClABI/abi-metadata.ll
diff --git a/test/NaCl/PNaClABI/abi-metadata.ll b/test/NaCl/PNaClABI/abi-metadata.ll
new file mode 100644
index 0000000000000000000000000000000000000000..e225192d06a87fc0f8eea916cfbb270124c9a9c4
--- /dev/null
+++ b/test/NaCl/PNaClABI/abi-metadata.ll
@@ -0,0 +1,27 @@
+; RUN: not pnacl-abicheck < %s | FileCheck %s
+; RUN: not pnacl-abicheck -pnaclabi-allow-debug-metadata < %s | FileCheck %s --check-prefix=DEBUG
+
+
+; Metadata is not part of the PNaCl's stable ABI, so normally the ABI
+; checker rejects metadata entirely. However, for debugging support,
+; pre-finalized pexes may contain metadata. When checking a
+; pre-finalized pexe, the ABI checker does not check the types in the
+; metadata.
+
+; DEBUG-NOT: Named metadata node llvm.dbg.cu is disallowed
+; CHECK: Named metadata node llvm.dbg.cu is disallowed
+!llvm.dbg.cu = !{!0}
+!0 = metadata !{ half 0.0}
+
+; A debuginfo version must always be specified.
+; DEBUG-NOT: ignoring debug info with an invalid version
+; CHECK-NOT: ignoring debug info with an invalid version
+; DEBUG-NOT: Named metadata node llvm.module.flags is disallowed
+; CHECK: Named metadata node llvm.module.flags is disallowed
+!llvm.module.flags = !{!1}
+!1 = metadata !{i32 1, metadata !"Debug Info Version", i32 2}
+
+; CHECK: Named metadata node madeup is disallowed
+; DEBUG: Named metadata node madeup is disallowed
+!madeup = !{!2}
+!2 = metadata !{ half 1.0}
« no previous file with comments | « test/NaCl/PNaClABI/abi-i1-operations.ll ('k') | test/NaCl/PNaClABI/abi-small-arguments.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698