Mehdi Amini
93e1ea167e
Move the DataLayout to the generic TargetMachine, making it mandatory.
...
Summary:
I don't know why every singled backend had to redeclare its own DataLayout.
There was a virtual getDataLayout() on the common base TargetMachine, the
default implementation returned nullptr. It was not clear from this that
we could assume at call site that a DataLayout will be available with
each Target.
Now getDataLayout() is no longer virtual and return a pointer to the
DataLayout member of the common base TargetMachine. I plan to turn it into
a reference in a future patch.
The only backend that didn't have a DataLayout previsouly was the CPPBackend.
It now initializes the default DataLayout. This commit is NFC for all the
other backends.
Test Plan: clang+llvm ninja check-all
Reviewers: echristo
Subscribers: jfb, jholewinski, llvm-commits
Differential Revision: http://reviews.llvm.org/D8243
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 231987
2015-03-12 00:07:24 +00:00
..
2015-03-06 12:15:12 +00:00
2015-02-19 11:38:11 +00:00
2015-01-21 12:39:30 +00:00
2015-03-10 22:03:14 +00:00
2013-12-11 00:30:57 +00:00
2014-12-17 11:49:56 +00:00
2014-07-24 11:45:27 +00:00
2014-09-02 22:28:02 +00:00
2015-02-10 16:36:20 +00:00
2014-11-19 13:37:51 +00:00
2015-03-11 20:28:31 +00:00
2015-01-29 23:27:36 +00:00
2014-08-13 16:26:38 +00:00
2015-03-09 15:50:58 +00:00
2015-03-09 15:50:58 +00:00
2014-04-25 05:30:21 +00:00
2014-08-13 16:26:38 +00:00
2014-08-07 05:46:54 +00:00
2015-01-05 10:15:49 +00:00
2014-08-13 16:26:38 +00:00
2014-11-26 00:46:26 +00:00
2015-01-29 23:27:36 +00:00
2014-08-13 16:26:38 +00:00
2015-02-26 00:00:24 +00:00
2014-11-02 16:09:29 +00:00
2015-01-29 23:27:36 +00:00
2014-08-13 16:26:38 +00:00
2014-07-31 01:43:54 +00:00
2015-01-29 11:33:41 +00:00
2015-03-04 13:01:14 +00:00
2014-07-22 13:36:02 +00:00
2015-01-29 23:27:36 +00:00
2015-02-27 10:44:02 +00:00
2014-10-04 16:55:56 +00:00
2014-08-13 16:26:38 +00:00
2015-02-21 08:48:22 +00:00
2015-02-21 08:48:23 +00:00
2015-02-26 18:35:15 +00:00
2015-02-16 18:10:47 +00:00
2015-02-15 22:54:22 +00:00
2014-12-12 15:16:46 +00:00
2015-01-29 23:27:36 +00:00
2015-03-11 21:41:28 +00:00
2014-07-10 17:26:51 +00:00
2013-10-15 01:48:30 +00:00
2015-03-11 22:42:13 +00:00
2015-01-29 23:27:36 +00:00
2014-08-13 16:26:38 +00:00
2015-01-20 16:10:51 +00:00
2015-02-25 15:24:37 +00:00
2015-01-08 18:18:54 +00:00
2014-08-13 16:26:38 +00:00
2015-03-11 20:28:31 +00:00
2015-02-04 15:43:17 +00:00
2015-02-04 15:43:17 +00:00
2015-03-11 22:42:13 +00:00
2015-02-26 22:38:43 +00:00
2015-01-29 23:27:36 +00:00
2015-02-27 15:03:50 +00:00
2014-08-30 16:48:02 +00:00
2015-03-04 01:24:11 +00:00
2014-08-13 16:26:38 +00:00
2015-03-09 15:50:58 +00:00
2015-03-09 15:50:58 +00:00
2014-07-10 17:26:51 +00:00
2014-09-04 13:23:44 +00:00
2015-01-29 23:27:36 +00:00
2015-01-26 17:33:46 +00:00
2015-03-09 15:50:58 +00:00
2015-03-09 15:50:58 +00:00
2015-03-11 22:42:13 +00:00
2015-03-11 22:42:13 +00:00
2015-02-23 17:22:16 +00:00
2014-03-24 14:05:39 +00:00
2015-01-29 23:27:36 +00:00
2014-08-13 16:26:38 +00:00
2015-01-08 18:18:53 +00:00
2015-01-06 01:12:42 +00:00
2015-02-27 09:01:39 +00:00
2015-02-04 15:43:17 +00:00
2015-02-26 00:00:24 +00:00
2014-11-02 16:09:29 +00:00
2014-06-27 04:38:30 +00:00
2014-08-13 16:26:38 +00:00
2014-08-05 02:39:49 +00:00
2014-08-13 16:26:38 +00:00
2015-02-20 08:42:34 +00:00
2015-02-18 16:24:50 +00:00
2015-03-12 00:07:24 +00:00
2015-03-12 00:07:24 +00:00
2015-01-29 17:33:21 +00:00
2014-11-06 13:20:12 +00:00
2015-03-06 12:15:12 +00:00
2014-11-01 16:08:03 +00:00