diff options
author | Björn Gustavsson <[email protected]> | 2011-08-10 15:14:36 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-10-11 11:46:34 +0200 |
commit | f2e79b0670d1c56205ae89ac248de53f46d56ee8 (patch) | |
tree | 2b32de96974bee6e25b59300f382bf114eda03d0 /erts/emulator/beam/ops.tab | |
parent | 2a30746d09f467c13e9361774867462ae4f2bd32 (diff) | |
download | otp-f2e79b0670d1c56205ae89ac248de53f46d56ee8.tar.gz otp-f2e79b0670d1c56205ae89ac248de53f46d56ee8.tar.bz2 otp-f2e79b0670d1c56205ae89ac248de53f46d56ee8.zip |
Refactor 'too_old_compiler' handling
In the handling of generic instructions, we used to always
test whether the instruction was 'too_old_compiler' and abort
loading with a special error message.
Refactor the code so that we only do test if we an error
has occurred. That will allow us to make the test more expensive
in the future, allowing us to customize error messages for certain
opcode without any cost in the successful case.
Diffstat (limited to 'erts/emulator/beam/ops.tab')
-rw-r--r-- | erts/emulator/beam/ops.tab | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab index fc98c399c1..327c4e8651 100644 --- a/erts/emulator/beam/ops.tab +++ b/erts/emulator/beam/ops.tab @@ -30,7 +30,7 @@ # needs to be re-compiled with a modern compiler. too_old_compiler/0 -too_old_compiler +too_old_compiler | never() => # In R9C and earlier, the loader used to insert special instructions inside # the module_info/0,1 functions. (In R10B and later, the compiler inserts |