Bill Wendling f69d5d7398 If we have a function like this:
void bork() {
  int *address = 0;
  *address = 0;
}

It's compiled into LLVM code that looks like this:

define void @bork() noreturn nounwind  {
entry:
        unreachable
}

This is bad on some platforms (like PPC) because it will generate the label for
the function but no body. The label could end up being associated with some
non-code related stuff, like a section. This places a "trap" instruction if the
SimplifyCFG pass removed all code from the function leaving only one
"unreachable" instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46387 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-26 01:43:44 +00:00
..
2007-02-08 04:31:15 +00:00
2007-04-16 15:31:49 +00:00
2007-02-08 04:31:15 +00:00
2007-04-16 15:15:52 +00:00
2007-04-16 15:31:49 +00:00
2005-07-26 22:08:53 +00:00
2007-04-16 17:36:08 +00:00
2007-02-08 04:31:15 +00:00
2006-05-19 19:34:09 +00:00
2007-02-08 04:31:15 +00:00
2006-09-18 18:07:51 +00:00
2006-10-31 06:26:10 +00:00
2007-01-06 23:38:37 +00:00
2007-01-21 00:56:42 +00:00
2007-02-05 02:28:56 +00:00
2007-02-05 02:26:07 +00:00
2007-02-04 23:55:04 +00:00
2007-02-19 20:20:04 +00:00
2007-02-08 04:34:03 +00:00
2007-02-17 01:44:21 +00:00
2007-04-12 00:32:43 +00:00
2007-05-08 06:10:12 +00:00
2007-05-08 18:08:20 +00:00
2007-05-15 23:44:27 +00:00
2007-05-16 16:51:31 +00:00
2007-05-30 05:37:18 +00:00
2007-09-07 08:30:09 +00:00
2007-09-11 22:20:27 +00:00
2007-09-24 17:14:53 +00:00
2007-10-03 05:29:07 +00:00
2007-10-30 23:07:47 +00:00
2007-11-07 19:36:26 +00:00
2008-01-04 13:15:39 +00:00
2008-01-21 19:28:13 +00:00
2008-01-21 22:15:58 +00:00
2008-01-24 23:55:34 +00:00
2007-07-17 06:20:38 +00:00
2007-04-25 01:51:33 +00:00
2007-11-27 06:23:59 +00:00
2007-07-17 06:20:38 +00:00
2007-10-25 00:50:14 +00:00