summaryrefslogtreecommitdiff
path: root/src/trans/codegen_c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trans/codegen_c.cpp')
-rw-r--r--src/trans/codegen_c.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp
index 416aa1f9..e8643591 100644
--- a/src/trans/codegen_c.cpp
+++ b/src/trans/codegen_c.cpp
@@ -1544,7 +1544,7 @@ namespace {
(Float,
this->emit_float(e);
),
- (BorrowOf,
+ (BorrowPath,
TU_MATCHA( (e.m_data), (pe),
(Generic,
const auto& vi = m_crate.get_valitem_by_path(sp, pe.m_path);
@@ -1595,6 +1595,9 @@ namespace {
)
m_of << Trans_Mangle( params.monomorph(m_resolve, e));
),
+ (BorrowData,
+ MIR_TODO(*m_mir_res, "Handle BorrowData - " << *e);
+ ),
(String,
m_of << "{ ";
m_of << "\"" << ::std::hex;
@@ -4057,7 +4060,7 @@ namespace {
emit_dst(); m_of << " = ";
emit_literal(ty, lit, {});
),
- (BorrowOf,
+ (BorrowPath,
if( ty.m_data.is_Function() )
{
emit_dst(); m_of << " = " << Trans_Mangle(e);
@@ -4092,6 +4095,9 @@ namespace {
emit_dst(); m_of << " = &" << Trans_Mangle(e);
}
),
+ (BorrowData,
+ MIR_TODO(*m_mir_res, "Handle BorrowData - " << *e);
+ ),
(String,
emit_dst(); m_of << ".PTR = ";
m_of << "\"" << ::std::oct;