Advertisement
Guest User

Untitled

a guest
Jul 26th, 2014
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.72 KB | None | 0 0
  1. arunprasadr@geekvm:~/works/myex/llvm$ g++ test.cpp `llvm-config-3.4 --cxxflags --ldflags --libs` -ldl -lstdc++ -lcurses
  2. arunprasadr@geekvm:~/works/myex/llvm$ ./a.out
  3. ; ModuleID = 'test.o'
  4. target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
  5. target triple = "x86_64-pc-linux-gnu"
  6.  
  7. %"class.std::ios_base::Init" = type { i8 }
  8. %"class.std::basic_ostream" = type { i32 (...)**, %"class.std::basic_ios" }
  9. %"class.std::basic_ios" = type { %"class.std::ios_base", %"class.std::basic_ostream"*, i8, i8, %"class.std::basic_streambuf"*, %"class.std::ctype"*, %"class.std::num_put"*, %"class.std::num_get"* }
  10. %"class.std::ios_base" = type { i32 (...)**, i64, i64, i32, i32, i32, %"struct.std::ios_base::_Callback_list"*, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, %"struct.std::ios_base::_Words"*, %"class.std::locale" }
  11. %"struct.std::ios_base::_Callback_list" = type { %"struct.std::ios_base::_Callback_list"*, void (i32, %"class.std::ios_base"*, i32)*, i32, i32 }
  12. %"struct.std::ios_base::_Words" = type { i8*, i64 }
  13. %"class.std::locale" = type { %"class.std::locale::_Impl"* }
  14. %"class.std::locale::_Impl" = type { i32, %"class.std::locale::facet"**, i64, %"class.std::locale::facet"**, i8** }
  15. %"class.std::locale::facet" = type { i32 (...)**, i32 }
  16. %"class.std::basic_streambuf" = type { i32 (...)**, i8*, i8*, i8*, i8*, i8*, i8*, %"class.std::locale" }
  17. %"class.std::ctype" = type { %"class.std::locale::facet", %struct.__locale_struct*, i8, i32*, i32*, i16*, i8, [256 x i8], [256 x i8], i8 }
  18. %struct.__locale_struct = type { [13 x %struct.__locale_data*], i16*, i32*, i32*, [13 x i8*] }
  19. %struct.__locale_data = type {}
  20. %"class.std::num_put" = type { %"class.std::locale::facet" }
  21. %"class.std::num_get" = type { %"class.std::locale::facet" }
  22.  
  23. @_ZStL8__ioinit = internal global %"class.std::ios_base::Init" zeroinitializer, align 1
  24. @__dso_handle = external global i8
  25. @_ZSt4cout = external global %"class.std::basic_ostream"
  26. @.str = private constant [13 x i8] c"Hello World!\00", align 1
  27. @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }]
  28.  
  29. define internal void @__cxx_global_var_init() section ".text.startup" {
  30.   call void @_ZNSt8ios_base4InitC1Ev(%"class.std::ios_base::Init"* @_ZStL8__ioinit)
  31.   %1 = call i32 @__cxa_atexit(void (i8*)* bitcast (void (%"class.std::ios_base::Init"*)* @_ZNSt8ios_base4InitD1Ev to void (i8*)*), i8* getelementptr inbounds (%"class.std::ios_base::Init"* @_ZStL8__ioinit, i32 0, i32 0), i8* @__dso_handle) #0
  32.   ret void
  33. }
  34.  
  35. declare void @_ZNSt8ios_base4InitC1Ev(%"class.std::ios_base::Init"*)
  36.  
  37. declare void @_ZNSt8ios_base4InitD1Ev(%"class.std::ios_base::Init"*)
  38.  
  39. ; Function Attrs: nounwind
  40. declare i32 @__cxa_atexit(void (i8*)*, i8*, i8*) #0
  41.  
  42. ; Function Attrs: uwtable
  43. define i32 @main() #1 {
  44.   %1 = alloca i32, align 4
  45.   store i32 0, i32* %1
  46.   %2 = call %"class.std::basic_ostream"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"class.std::basic_ostream"* @_ZSt4cout, i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0))
  47.   ret i32 0
  48. }
  49.  
  50. declare %"class.std::basic_ostream"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"class.std::basic_ostream"*, i8*)
  51.  
  52. define internal void @_GLOBAL__I_a() section ".text.startup" {
  53.   call void @__cxx_global_var_init()
  54.   ret void
  55. }
  56.  
  57. attributes #0 = { nounwind }
  58. attributes #1 = { uwtable }
  59. arunprasadr@geekvm:~/works/myex/llvm$ file ./a.out
  60. ./a.out: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xbb8f0ac1551afc48594d75bc5fd0001d5d7a285f, not stripped
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement