diff options
| author | Graydon Hoare <[email protected]> | 2011-03-25 18:44:52 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-25 18:45:00 -0700 |
| commit | 027368b885848377a0025ced2734cabf5ff201e1 (patch) | |
| tree | 312d2a76d7a8e02686f5b6a81678ee07b8a869cd /src/comp/front | |
| parent | Tweak rustllvm bindings to work on linux, where bool != LLVMBool. (diff) | |
| download | rust-027368b885848377a0025ced2734cabf5ff201e1.tar.xz rust-027368b885848377a0025ced2734cabf5ff201e1.zip | |
Janitorial: move llvmext back to llvm module, as they're the same thing now.
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/creader.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs index 01203226..b19a2972 100644 --- a/src/comp/front/creader.rs +++ b/src/comp/front/creader.rs @@ -4,7 +4,6 @@ import driver.session; import front.ast; import lib.llvm.False; import lib.llvm.llvm; -import lib.llvm.llvmext; import lib.llvm.mk_object_file; import lib.llvm.mk_section_iter; import middle.fold; @@ -331,23 +330,23 @@ fn load_crate(session.session sess, for (str library_search_path in library_search_paths) { auto path = fs.connect(library_search_path, filename); auto pbuf = _str.buf(path); - auto mb = llvmext.LLVMRustCreateMemoryBufferWithContentsOfFile(pbuf); + auto mb = llvm.LLVMRustCreateMemoryBufferWithContentsOfFile(pbuf); if (mb as int != 0) { auto of = mk_object_file(mb); auto si = mk_section_iter(of.llof); - while (llvmext.LLVMIsSectionIteratorAtEnd(of.llof, si.llsi) == + while (llvm.LLVMIsSectionIteratorAtEnd(of.llof, si.llsi) == False) { - auto name_buf = llvmext.LLVMGetSectionName(si.llsi); + auto name_buf = llvm.LLVMGetSectionName(si.llsi); auto name = _str.str_from_cstr(name_buf); if (_str.eq(name, x86.get_meta_sect_name())) { - auto cbuf = llvmext.LLVMGetSectionContents(si.llsi); - auto csz = llvmext.LLVMGetSectionSize(si.llsi); + auto cbuf = llvm.LLVMGetSectionContents(si.llsi); + auto csz = llvm.LLVMGetSectionSize(si.llsi); auto cvbuf = cbuf as _vec.vbuf; auto cvec = _vec.vec_from_vbuf[u8](cvbuf, csz); sess.set_external_crate(cnum, cvec); ret; } - llvmext.LLVMMoveToNextSection(si.llsi); + llvm.LLVMMoveToNextSection(si.llsi); } } } |