Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arunprasadr@geekvm:~/works/myex/llvm$ g++ test.cpp `llvm-config-3.4 --cxxflags --ldflags --libs` -ldl -lstdc++ -lcurses
- arunprasadr@geekvm:~/works/myex/llvm$ ./a.out
- ; ModuleID = 'test.o'
- 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"
- target triple = "x86_64-pc-linux-gnu"
- %"class.std::ios_base::Init" = type { i8 }
- %"class.std::basic_ostream" = type { i32 (...)**, %"class.std::basic_ios" }
- %"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"* }
- %"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" }
- %"struct.std::ios_base::_Callback_list" = type { %"struct.std::ios_base::_Callback_list"*, void (i32, %"class.std::ios_base"*, i32)*, i32, i32 }
- %"struct.std::ios_base::_Words" = type { i8*, i64 }
- %"class.std::locale" = type { %"class.std::locale::_Impl"* }
- %"class.std::locale::_Impl" = type { i32, %"class.std::locale::facet"**, i64, %"class.std::locale::facet"**, i8** }
- %"class.std::locale::facet" = type { i32 (...)**, i32 }
- %"class.std::basic_streambuf" = type { i32 (...)**, i8*, i8*, i8*, i8*, i8*, i8*, %"class.std::locale" }
- %"class.std::ctype" = type { %"class.std::locale::facet", %struct.__locale_struct*, i8, i32*, i32*, i16*, i8, [256 x i8], [256 x i8], i8 }
- %struct.__locale_struct = type { [13 x %struct.__locale_data*], i16*, i32*, i32*, [13 x i8*] }
- %struct.__locale_data = type {}
- %"class.std::num_put" = type { %"class.std::locale::facet" }
- %"class.std::num_get" = type { %"class.std::locale::facet" }
- @_ZStL8__ioinit = internal global %"class.std::ios_base::Init" zeroinitializer, align 1
- @__dso_handle = external global i8
- @_ZSt4cout = external global %"class.std::basic_ostream"
- @.str = private constant [13 x i8] c"Hello World!\00", align 1
- @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }]
- define internal void @__cxx_global_var_init() section ".text.startup" {
- call void @_ZNSt8ios_base4InitC1Ev(%"class.std::ios_base::Init"* @_ZStL8__ioinit)
- %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
- ret void
- }
- declare void @_ZNSt8ios_base4InitC1Ev(%"class.std::ios_base::Init"*)
- declare void @_ZNSt8ios_base4InitD1Ev(%"class.std::ios_base::Init"*)
- ; Function Attrs: nounwind
- declare i32 @__cxa_atexit(void (i8*)*, i8*, i8*) #0
- ; Function Attrs: uwtable
- define i32 @main() #1 {
- %1 = alloca i32, align 4
- store i32 0, i32* %1
- %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))
- ret i32 0
- }
- declare %"class.std::basic_ostream"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"class.std::basic_ostream"*, i8*)
- define internal void @_GLOBAL__I_a() section ".text.startup" {
- call void @__cxx_global_var_init()
- ret void
- }
- attributes #0 = { nounwind }
- attributes #1 = { uwtable }
- arunprasadr@geekvm:~/works/myex/llvm$ file ./a.out
- ./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