summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-02-09 22:56:06 +0800
committerJohn Hodge <tpg@mutabah.net>2017-02-09 22:56:06 +0800
commit2ea9e6368b092b0e969ea8d7882b5afbe84374fd (patch)
tree16cf43353479329c8d8edce415cc1c46dfce4a86 /src
parent4367f8416c5dc3f8da8f714cb29c0c926fd8dfe5 (diff)
downloadmrust-2ea9e6368b092b0e969ea8d7882b5afbe84374fd.tar.gz
Codegen - Don't emit extern references to intrinsics
Diffstat (limited to 'src')
-rw-r--r--src/trans/codegen.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/trans/codegen.cpp b/src/trans/codegen.cpp
index 043e9b43..e4ca0b5a 100644
--- a/src/trans/codegen.cpp
+++ b/src/trans/codegen.cpp
@@ -61,7 +61,13 @@ void Trans_Codegen(const ::std::string& outfile, const ::HIR::Crate& crate, cons
codegen->emit_function_proto(ent.first, *ent.second->ptr, ent.second->pp);
}
else {
- codegen->emit_function_ext(ent.first, *ent.second->ptr, ent.second->pp);
+ // TODO: Why would an intrinsic be in the queue?
+ // - If it's exported it does.
+ if( ent.second->ptr->m_abi == "rust-intrinsic" ) {
+ }
+ else {
+ codegen->emit_function_ext(ent.first, *ent.second->ptr, ent.second->pp);
+ }
}
}
// 3. Emit statics