Skip to content

Commit 1aecfc9

Browse files
committed
---
yaml --- r: 22668 b: refs/heads/master c: 7680f50 h: refs/heads/master v: v3
1 parent 39376ca commit 1aecfc9

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: df4db83ed840b042942a26ed34f126d9829fcd11
2+
refs/heads/master: 7680f504c2c9934a617ff20b1d852ea191c6bc52
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/rustc/driver/session.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const coherence: uint = 512u;
3939
const borrowck_stats: uint = 1024u;
4040
const borrowck_note_pure: uint = 2048;
4141
const borrowck_note_loan: uint = 4096;
42+
const no_landing_pads: uint = 8192;
4243

4344
fn debugging_opts_map() -> ~[(~str, ~str, uint)] {
4445
~[(~"ppregions", ~"prettyprint regions with \
@@ -58,7 +59,9 @@ fn debugging_opts_map() -> ~[(~str, ~str, uint)] {
5859
(~"borrowck-note-pure", ~"note where purity is req'd",
5960
borrowck_note_pure),
6061
(~"borrowck-note-loan", ~"note where loans are req'd",
61-
borrowck_note_loan)
62+
borrowck_note_loan),
63+
(~"no-landing-pads", ~"omit landing pads for unwinding",
64+
no_landing_pads)
6265
]
6366
}
6467

trunk/src/rustc/middle/trans/base.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3224,6 +3224,10 @@ fn invoke(bcx: block, llfn: ValueRef, llargs: ~[ValueRef]) -> block {
32243224
}
32253225

32263226
fn need_invoke(bcx: block) -> bool {
3227+
if (bcx.ccx().sess.opts.debugging_opts & session::no_landing_pads != 0) {
3228+
ret false;
3229+
}
3230+
32273231
if have_cached_lpad(bcx) {
32283232
ret true;
32293233
}

0 commit comments

Comments
 (0)