Advertisement
JetForMe

Untitled

Jan 8th, 2013
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Source LLVM
  2. ===========
  3.  
  4. @gFoo = global i32 123
  5.  
  6. @.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00"
  7.  
  8. declare i32 @puts(i8* nocapture) nounwind
  9.  
  10. define void @MyEntry() {
  11. %cast210 = getelementptr [13 x i8]* @.str, i64 0, i64 0
  12. call i32 @puts(i8* %cast210)
  13. ret void
  14. }
  15.  
  16. Module Dump
  17. ===========
  18.  
  19. ; ModuleID = 'helloWorldModule'
  20.  
  21. @gFoo = global i32 123
  22. @.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00"
  23.  
  24. declare i32 @puts(i8* nocapture) nounwind
  25.  
  26. define void @MyEntry() {
  27. %cast210 = getelementptr [13 x i8]* @.str, i64 0, i64 0
  28. %1 = call i32 @puts(i8* %cast210)
  29. ret void
  30. }
Advertisement
RAW Paste Data Copied
Advertisement