~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/Transforms/ConstantMerge/linker-private.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -constmerge -S | FileCheck %s
 
2
; <rdar://problem/10564621>
 
3
 
 
4
%0 = type opaque
 
5
%struct.NSConstantString = type { i32*, i32, i8*, i32 }
 
6
 
 
7
; CHECK: @.str3 = linker_private unnamed_addr constant [1 x i8] zeroinitializer, align 1
 
8
 
 
9
@isLogVisible = global i8 0, align 1
 
10
@__CFConstantStringClassReference = external global [0 x i32]
 
11
@.str3 = linker_private unnamed_addr constant [1 x i8] zeroinitializer, align 1
 
12
@_unnamed_cfstring_4 = private constant %struct.NSConstantString { i32* getelementptr inbounds ([0 x i32]* @__CFConstantStringClassReference, i32 0, i32 0), i32 1992, i8* getelementptr inbounds ([1 x i8]* @.str3, i32 0, i32 0), i32 0 }, section "__DATA,__cfstring"
 
13
@null.array = weak_odr constant [1 x i8] zeroinitializer, align 1
 
14
 
 
15
define linkonce_odr void @bar() nounwind ssp align 2 {
 
16
entry:
 
17
  %stack = alloca i8*, align 4
 
18
  %call = call %0* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %0* (i8*, i8*, %0*)*)(i8* null, i8* null, %0* bitcast (%struct.NSConstantString* @_unnamed_cfstring_4 to %0*))
 
19
  store i8* getelementptr inbounds ([1 x i8]* @null.array, i32 0, i32 0), i8** %stack, align 4
 
20
  ret void
 
21
}
 
22
 
 
23
declare i8* @objc_msgSend(i8*, i8*, ...) nonlazybind