Created
February 15, 2016 08:05
-
-
Save tomaka/eb2d45a5e1d470dd0106 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Function Attrs: noinline uwtable | |
| define internal i8* @_ZN5hello20h898a0b35c963e11dgaaE() unnamed_addr #0 { | |
| entry-block: | |
| %f = alloca { %"1.std::ffi::c_str::CStr"*, i32 } | |
| %v = alloca { i8*, i32 } | |
| %0 = call { %"1.std::ffi::c_str::CStr"*, i32 } @_ZN3ffi5c_str4CStr8from_ptr20hcd4af70afe08fc0cKOeE(i8* inttoptr (i32 -559038737 to i8*)) | |
| %1 = extractvalue { %"1.std::ffi::c_str::CStr"*, i32 } %0, 0 | |
| %2 = getelementptr inbounds { %"1.std::ffi::c_str::CStr"*, i32 }, { %"1.std::ffi::c_str::CStr"*, i32 }* %f, i32 0, i32 0 | |
| store %"1.std::ffi::c_str::CStr"* %1, %"1.std::ffi::c_str::CStr"** %2 | |
| %3 = extractvalue { %"1.std::ffi::c_str::CStr"*, i32 } %0, 1 | |
| %4 = getelementptr inbounds { %"1.std::ffi::c_str::CStr"*, i32 }, { %"1.std::ffi::c_str::CStr"*, i32 }* %f, i32 0, i32 1 | |
| store i32 %3, i32* %4 | |
| %5 = bitcast { i8*, i32 }* %v to { %"1.std::ffi::c_str::CStr"*, i32 }* | |
| %6 = getelementptr inbounds { %"1.std::ffi::c_str::CStr"*, i32 }, { %"1.std::ffi::c_str::CStr"*, i32 }* %f, i32 0, i32 0 | |
| %7 = load %"1.std::ffi::c_str::CStr"*, %"1.std::ffi::c_str::CStr"** %6 | |
| %8 = getelementptr inbounds { %"1.std::ffi::c_str::CStr"*, i32 }, { %"1.std::ffi::c_str::CStr"*, i32 }* %f, i32 0, i32 1 | |
| %9 = load i32, i32* %8 | |
| %10 = getelementptr inbounds { %"1.std::ffi::c_str::CStr"*, i32 }, { %"1.std::ffi::c_str::CStr"*, i32 }* %5, i32 0, i32 0 | |
| store %"1.std::ffi::c_str::CStr"* %7, %"1.std::ffi::c_str::CStr"** %10 | |
| %11 = getelementptr inbounds { %"1.std::ffi::c_str::CStr"*, i32 }, { %"1.std::ffi::c_str::CStr"*, i32 }* %5, i32 0, i32 1 | |
| store i32 %9, i32* %11 | |
| %12 = getelementptr inbounds { i8*, i32 }, { i8*, i32 }* %v, i32 0, i32 0 | |
| %13 = load i8*, i8** %12, align 4 | |
| ret i8* %13 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment