[llvm] r196718 - Ensure bitcode encoding of visibility styles stays stable. Patch by Boaz Ouriel.
Michael Kuperstein
michael.m.kuperstein at intel.com
Sun Dec 8 03:35:10 PST 2013
Author: mkuper
Date: Sun Dec 8 05:35:09 2013
New Revision: 196718
URL: http://llvm.org/viewvc/llvm-project?rev=196718&view=rev
Log:
Ensure bitcode encoding of visibility styles stays stable. Patch by Boaz Ouriel.
Added:
llvm/trunk/test/Bitcode/visibility-styles.3.2.ll
llvm/trunk/test/Bitcode/visibility-styles.3.2.ll.bc (with props)
Added: llvm/trunk/test/Bitcode/visibility-styles.3.2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/visibility-styles.3.2.ll?rev=196718&view=auto
==============================================================================
--- llvm/trunk/test/Bitcode/visibility-styles.3.2.ll (added)
+++ llvm/trunk/test/Bitcode/visibility-styles.3.2.ll Sun Dec 8 05:35:09 2013
@@ -0,0 +1,23 @@
+; RUN: llvm-dis < %s.bc| FileCheck %s
+
+; visibility-styles.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
+; The test checks that LLVM does not silently misread visibility styles of
+; older bitcode files.
+
+ at default.var = default global i32 0
+; CHECK: @default.var = global i32 0
+
+ at hidden.var = hidden global i32 0
+; CHECK: @hidden.var = hidden global i32 0
+
+ at protected.var = protected global i32 0
+; CHECK: @protected.var = protected global i32 0
+
+declare default void @default()
+; CHECK: declare void @default
+
+declare hidden void @hidden()
+; CHECK: declare hidden void @hidden
+
+declare protected void @protected()
+; CHECK: declare protected void @protected
Added: llvm/trunk/test/Bitcode/visibility-styles.3.2.ll.bc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/visibility-styles.3.2.ll.bc?rev=196718&view=auto
==============================================================================
Binary file - no diff available.
Propchange: llvm/trunk/test/Bitcode/visibility-styles.3.2.ll.bc
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
More information about the llvm-commits
mailing list