From 8dc924f542e3f21adf2f0df041d7e61acf06e961 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 13 Jan 2017 20:04:32 +0800 Subject: Codegen C - Use the load path of the crate for the file source --- src/trans/codegen_c.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/trans/codegen_c.cpp') diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp index 803930f8..32ac75f3 100644 --- a/src/trans/codegen_c.cpp +++ b/src/trans/codegen_c.cpp @@ -122,9 +122,7 @@ namespace { { for( const auto& crate : m_crate.m_ext_crates ) { - // TODO: Get the path from the CratePtr - //tmp.push_back(crate.second.m_filename + ".o"); - tmp.push_back("output/lib" + crate.first + ".hir.o"); + tmp.push_back(crate.second.m_filename + ".o"); args.push_back(tmp.back().c_str()); } args.push_back("-lm"); @@ -2415,7 +2413,6 @@ namespace { emit_dst(); m_of << " = " << e; ), (BorrowOf, - // TODO: If the type is Borrow of a DST, do a fat assign. if( ty.m_data.is_Function() ) { emit_dst(); m_of << " = " << Trans_Mangle(e); -- cgit v1.2.3