Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Source LLVM
- ===========
- @gFoo = global i32 123
- @.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00"
- declare i32 @puts(i8* nocapture) nounwind
- define void @MyEntry() {
- %cast210 = getelementptr [13 x i8]* @.str, i64 0, i64 0
- call i32 @puts(i8* %cast210)
- ret void
- }
- Module Dump
- ===========
- ; ModuleID = 'helloWorldModule'
- @gFoo = global i32 123
- @.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00"
- declare i32 @puts(i8* nocapture) nounwind
- define void @MyEntry() {
- %cast210 = getelementptr [13 x i8]* @.str, i64 0, i64 0
- %1 = call i32 @puts(i8* %cast210)
- ret void
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement