1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/unittests
Mehdi Amini f88efe5f8a DataLayout is mandatory, update the API to reflect it with references.
Summary:
Now that the DataLayout is a mandatory part of the module, let's start
cleaning the codebase. This patch is a first attempt at doing that.

This patch is not exactly NFC as for instance some places were passing
a nullptr instead of the DataLayout, possibly just because there was a
default value on the DataLayout argument to many functions in the API.
Even though it is not purely NFC, there is no change in the
validation.

I turned as many pointer to DataLayout to references, this helped
figuring out all the places where a nullptr could come up.

I had initially a local version of this patch broken into over 30
independant, commits but some later commit were cleaning the API and
touching part of the code modified in the previous commits, so it
seemed cleaner without the intermediate state.

Test Plan:

Reviewers: echristo

Subscribers: llvm-commits

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 231740
2015-03-10 02:37:25 +00:00
..
ADT Add support for Nuxi CloudABI. 2015-03-09 18:40:45 +00:00
Analysis [PM] Remove the old 'PassManager.h' header file at the top level of 2015-02-13 10:01:29 +00:00
Bitcode
CodeGen
DebugInfo Fix -Woverflow warning in unittest. 2015-03-05 14:43:15 +00:00
ExecutionEngine Add missing includes. make_unique proliferated everywhere. 2015-03-01 21:28:53 +00:00
IR DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
LineEditor
Linker
MC
Option
ProfileData InstrProf: Don't combine expansion regions with code regions 2015-02-18 19:01:06 +00:00
Support Don't treat .foo as two path components in path::iterators 2015-03-10 00:04:29 +00:00
Transforms Add explicit type to empty std::set initializer to fix the libc++ build. 2015-03-03 01:39:13 +00:00
CMakeLists.txt
Makefile
Makefile.unittest