Skip to content

Commit

Permalink
Remove some old runtime stubs (#12820)
Browse files Browse the repository at this point in the history
__builtin_prefetch is handled by clang/llvm.

__gxx_personality_v0/__gxx_personality_v0 are defined in
cxa_personality.cpp when building with wasm exceptions and
don't seem to be needed at all with emscripten-style
exceptions.
  • Loading branch information
sbc100 committed Nov 18, 2020
1 parent 8e154f5 commit b43d3de
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,21 +743,14 @@ LibraryManager.library = {
#endif

// ==========================================================================
// GCC/LLVM specifics
// assert.h
// ==========================================================================
__builtin_prefetch: function(){},

__assert_fail__sig: 'viiii',
__assert_fail: function(condition, filename, line, func) {
abort('Assertion failed: ' + UTF8ToString(condition) + ', at: ' + [filename ? UTF8ToString(filename) : 'unknown filename', line, func ? UTF8ToString(func) : 'unknown function']);
},

__gxx_personality_v0: function() {
},

__gcc_personality_v0: function() {
},

// ==========================================================================
// pwd.h
// ==========================================================================
Expand Down

0 comments on commit b43d3de

Please sign in to comment.