llvm-project/llvm/lib/CodeGen/AsmPrinter
Mehdi Amini a28d91d81b 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
..
ARMException.cpp Print jump tables before exception tables. 2015-03-09 18:29:12 +00:00
AddressPool.cpp DWARF Type Units: Avoid emitting type units under fission if the type requires an address. 2014-04-26 17:27:38 +00:00
AddressPool.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
AsmPrinter.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
AsmPrinterDwarf.cpp Move emitDIE and emitAbbrevs to AsmPrinter. NFC. 2015-03-04 02:30:17 +00:00
AsmPrinterHandler.h Print jump tables before exception tables. 2015-03-09 18:29:12 +00:00
AsmPrinterInlineAsm.cpp Unconditionally create a new MCInstrInfo in the asm printer for 2015-02-21 09:09:15 +00:00
ByteStreamer.h Refactor DebugLocDWARFExpression so it doesn't require access to the 2015-03-02 22:02:33 +00:00
CMakeLists.txt Debug info: Factor out the creation of DWARF expressions from AsmPrinter 2015-01-12 22:19:22 +00:00
DIE.cpp Remove useless break after return. 2015-03-05 06:13:39 +00:00
DIEHash.cpp Use read{16,32,64}{le,be}() instead of *reinterpret_cast<u{little,big}{16,32,64}_t>(). 2015-03-02 21:19:12 +00:00
DIEHash.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
DbgValueHistoryCalculator.cpp DbgValueHistoryCalculator: Store modified registers in a BitVector instead of std::set. 2014-10-06 15:31:04 +00:00
DbgValueHistoryCalculator.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
DebugLocEntry.h Refactor DebugLocDWARFExpression so it doesn't require access to the 2015-03-02 22:02:33 +00:00
DebugLocList.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
DwarfAccelTable.cpp DwarfAccelTable: Fix handling of hash collisions. 2015-03-10 00:46:31 +00:00
DwarfAccelTable.h Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; LLVM edition. 2015-02-15 22:54:22 +00:00
DwarfCFIException.cpp Print jump tables before exception tables. 2015-03-09 18:29:12 +00:00
DwarfCompileUnit.cpp Use the existing begin and end symbol for debug info. 2015-03-05 02:05:42 +00:00
DwarfCompileUnit.h Remove support for DIVariable's FlagIndirectVariable and expect 2015-01-19 17:57:29 +00:00
DwarfDebug.cpp Use a MapVector instead of an extra sort. 2015-03-09 22:08:37 +00:00
DwarfDebug.h Use the existing begin and end symbol for debug info. 2015-03-05 02:05:42 +00:00
DwarfException.h Print jump tables before exception tables. 2015-03-09 18:29:12 +00:00
DwarfExpression.cpp Fix DwarfExpression::AddMachineRegExpression so it doesn't read past the 2015-03-04 17:39:33 +00:00
DwarfExpression.h Refactor DebugLocDWARFExpression so it doesn't require access to the 2015-03-02 22:02:33 +00:00
DwarfFile.cpp Move emitDIE and emitAbbrevs to AsmPrinter. NFC. 2015-03-04 02:30:17 +00:00
DwarfFile.h Move emitDIE and emitAbbrevs to AsmPrinter. NFC. 2015-03-04 02:30:17 +00:00
DwarfStringPool.cpp Remove StringMap::GetOrCreateValue in favor of StringMap::insert 2014-11-19 05:49:42 +00:00
DwarfStringPool.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
DwarfUnit.cpp Revert "Revert "For the dwarf expression code get the subtarget off of the current"" 2015-03-02 22:02:36 +00:00
DwarfUnit.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
EHStreamer.cpp Remove dummy method implementations. 2015-03-09 17:58:49 +00:00
EHStreamer.h Remove dummy method implementations. 2015-03-09 17:58:49 +00:00
ErlangGCPrinter.cpp Compute the ELF SectionKind from the flags. 2015-01-29 17:33:21 +00:00
LLVMBuild.txt Add proper dependencies to LLVMBuild.txt in llvm/lib. 2013-12-10 05:39:34 +00:00
Makefile
OcamlGCPrinter.cpp Move DataLayout back to the TargetMachine from TargetSubtargetInfo 2015-01-26 19:03:15 +00:00
Win64Exception.cpp Centralize handling of the eh_begin and eh_end labels. 2015-02-27 18:18:39 +00:00
Win64Exception.h CodeGen support for x86_64 SEH catch handlers in LLVM 2015-01-14 01:05:27 +00:00
WinCodeViewLineTables.cpp Use the existing begin and end symbol for debug info. 2015-03-05 02:05:42 +00:00
WinCodeViewLineTables.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00