Hal Finkel
b6bb7db62b
[PowerPC] Fix calls to non-function objects
...
Looking at r225438 inspired me to see how the PowerPC backend handled the
situation (calling a bitcasted TLS global), and it turns out we also produced
an error (cannot select ...). What it means to "call" something that is not a
function is implementation and platform specific, but in the name of doing
something (besides crashing), this makes sure we do what GCC does (treat all
such calls as calls through a function pointer -- meaning that the pointer is
assumed, as is the convention on PPC, to point to a function descriptor
structure holding the actual code address along with the function's TOC pointer
and environment pointer). As GCC does, we now do the same for calling regular
(non-TLS) non-function globals too.
I'm not sure whether this is the most useful way to define the behavior, but at
least we won't be alone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225617 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-12 04:34:47 +00:00
..
2015-01-05 23:17:43 +00:00
2014-10-19 21:29:21 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-10-19 21:29:21 +00:00
2014-12-15 19:07:53 +00:00
2014-12-11 22:51:06 +00:00
2015-01-08 22:11:49 +00:00
2015-01-06 16:46:37 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-10-31 10:33:14 +00:00
2015-01-01 02:53:29 +00:00
2014-10-19 21:29:21 +00:00
2014-12-04 00:46:20 +00:00
2015-01-03 01:16:37 +00:00
2015-01-03 01:16:37 +00:00
2015-01-03 17:58:24 +00:00
2015-01-05 03:41:38 +00:00
2014-10-17 01:41:22 +00:00
2014-12-27 19:45:38 +00:00
2015-01-05 05:24:42 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-10-19 21:29:21 +00:00
2014-10-19 20:48:47 +00:00
2014-10-19 20:48:47 +00:00
2014-12-25 23:08:25 +00:00
2014-10-19 20:48:47 +00:00
2014-10-19 20:48:47 +00:00
2014-10-19 20:48:47 +00:00
2014-10-17 01:41:22 +00:00
2014-11-24 23:45:21 +00:00
2015-01-07 20:54:17 +00:00
2015-01-07 20:54:17 +00:00
2014-10-21 13:02:37 +00:00
2014-10-19 20:27:56 +00:00
2014-10-21 23:01:01 +00:00
2014-10-21 23:01:01 +00:00
2014-10-19 21:29:21 +00:00
2014-10-19 21:29:21 +00:00
2014-10-19 21:29:21 +00:00
2015-01-09 01:34:30 +00:00
2015-01-06 06:01:57 +00:00
2014-12-26 16:42:47 +00:00
2014-10-17 01:41:22 +00:00
2014-10-17 01:41:22 +00:00
2014-12-15 19:07:53 +00:00
2015-01-05 21:10:24 +00:00
2014-10-19 21:29:21 +00:00
2014-12-03 23:40:13 +00:00
2014-12-03 09:37:50 +00:00
2014-12-15 19:07:53 +00:00
2015-01-05 21:33:14 +00:00
2015-01-05 21:22:42 +00:00
2014-10-17 01:41:22 +00:00
2014-10-17 01:41:22 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-01-06 22:31:02 +00:00
2014-12-09 01:00:59 +00:00
2014-12-03 00:19:17 +00:00
2014-12-15 19:07:53 +00:00
2015-01-10 01:57:21 +00:00
2015-01-10 01:57:21 +00:00
2014-10-17 01:41:22 +00:00
2014-12-23 22:29:40 +00:00
2014-11-21 04:35:51 +00:00
2015-01-12 04:34:47 +00:00
2014-12-11 22:51:06 +00:00
2014-12-09 16:35:51 +00:00
2014-10-16 20:00:02 +00:00
2014-12-09 16:35:51 +00:00
2014-12-15 19:07:53 +00:00
2014-10-21 13:02:37 +00:00
2014-12-23 09:45:06 +00:00
2014-12-16 05:51:41 +00:00
2014-12-16 05:51:41 +00:00
2015-01-05 18:52:29 +00:00
2014-10-17 01:41:22 +00:00
2014-12-23 08:38:50 +00:00
2014-11-12 15:16:30 +00:00
2014-12-01 09:42:32 +00:00
2014-12-08 22:54:22 +00:00
2014-12-08 22:54:22 +00:00
2014-11-12 16:50:15 +00:00
2014-11-11 20:44:09 +00:00
2014-12-15 19:07:53 +00:00
2014-10-17 15:13:38 +00:00
2014-10-17 15:13:38 +00:00
2014-10-19 21:29:21 +00:00
2014-12-15 19:07:53 +00:00
2014-12-09 16:35:51 +00:00
2014-10-19 21:29:21 +00:00
2014-12-09 16:35:51 +00:00
2014-10-17 15:13:38 +00:00
2014-10-19 21:29:21 +00:00
2014-12-09 16:59:57 +00:00
2014-12-09 16:59:57 +00:00
2014-12-05 20:32:05 +00:00
2014-11-14 12:10:40 +00:00
2014-12-05 20:32:05 +00:00
2014-12-09 16:59:57 +00:00
2014-12-09 16:59:57 +00:00
2014-10-31 19:19:07 +00:00
2014-12-05 20:32:05 +00:00
2014-12-05 20:32:05 +00:00
2014-12-05 20:32:05 +00:00
2014-12-05 20:32:05 +00:00
2015-01-10 08:21:59 +00:00