aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-02-24 16:18:24 +0100
committerBjörn Gustavsson <[email protected]>2011-08-18 10:00:29 +0200
commit581a6659f9d67fb0da5399e50ce49070e4becebd (patch)
tree9f3a4f17083a77d650d3ca39f41edbd80d58fa28 /erts/emulator/beam/beam_load.c
parentd12294aea905b4bc188c1e1c84f0ec7c2284faa7 (diff)
downloadotp-581a6659f9d67fb0da5399e50ce49070e4becebd.tar.gz
otp-581a6659f9d67fb0da5399e50ce49070e4becebd.tar.bz2
otp-581a6659f9d67fb0da5399e50ce49070e4becebd.zip
erl: Add +L to suppress loading of line number information
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index e15362bc1c..fad81e24d6 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -1397,6 +1397,15 @@ read_line_table(LoaderState* stp)
BeamInstr tag;
/*
+ * If the emulator flag ignoring the line information was given,
+ * return immediately.
+ */
+
+ if (erts_no_line_info) {
+ return 1;
+ }
+
+ /*
* Check version of line table.
*/