1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/include/llvm/Support
Chandler Carruth 15c7b91ac2 [Modules] Make Support/Debug.h modular. This requires it to not change
behavior based on other files defining DEBUG_TYPE, which means it cannot
define DEBUG_TYPE at all. This is actually better IMO as it forces folks
to define relevant DEBUG_TYPEs for their files. However, it requires all
files that currently use DEBUG(...) to define a DEBUG_TYPE if they don't
already. I've updated all such files in LLVM and will do the same for
other upstream projects.

This still leaves one important change in how LLVM uses the DEBUG_TYPE
macro going forward: we need to only define the macro *after* header
files have been #include-ed. Previously, this wasn't possible because
Debug.h required the macro to be pre-defined. This commit removes that.
By defining DEBUG_TYPE after the includes two things are fixed:

- Header files that need to provide a DEBUG_TYPE for some inline code
  can do so by defining the macro before their inline code and undef-ing
  it afterward so the macro does not escape.

- We no longer have rampant ODR violations due to including headers with
  different DEBUG_TYPE definitions. This may be mostly an academic
  violation today, but with modules these types of violations are easy
  to check for and potentially very relevant.

Where necessary to suppor headers with DEBUG_TYPE, I have moved the
definitions below the includes in this commit. I plan to move the rest
of the DEBUG_TYPE macros in LLVM in subsequent commits; this one is big
enough.

The comments in Debug.h, which were hilariously out of date already,
have been updated to reflect the recommended practice going forward.

llvm-svn: 206822
2014-04-21 22:55:11 +00:00
..
AIXDataTypesFix.h
AlignOf.h Extend llvm::AlignedCharArrayUnion to support up to 10 arguments, as required by Clang's APValue. 2014-01-09 03:28:55 +00:00
Allocator.h Allocator: Remove ReferenceAdder hack. 2014-04-18 14:54:51 +00:00
ARMBuildAttributes.h [ARM] Do not generate Tag_DIV_use=AllowDIVExt when hardware div is non-optional: it should have the default value of AllowDIVIfExists 2014-01-20 10:18:42 +00:00
ARMEHABI.h Support: add reference for ARM EHABI 2014-01-06 04:14:03 +00:00
ArrayRecycler.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-14 00:51:57 +00:00
Atomic.h
BlockFrequency.h [block-freq] Add a right shift to BlockFrequency that saturates at 1. 2013-12-14 02:24:22 +00:00
BranchProbability.h
Capacity.h
Casting.h [C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr. 2014-04-09 06:08:46 +00:00
CBindingWrapping.h
circular_raw_ostream.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
CodeGen.h
COFF.h obj2yaml: Use the correct relocation type for different machine types 2014-04-07 23:12:20 +00:00
CommandLine.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-14 00:51:57 +00:00
Compiler.h Revert "[C++11] Do not check __GXX_EXPERIMENTAL_CXX0X__." 2014-03-27 22:36:06 +00:00
Compression.h Simplify compression API by compressing into a SmallVector rather than a MemoryBuffer 2014-04-05 21:53:04 +00:00
ConvertUTF.h [Support] Add a Unicode conversion wrapper from UTF16 to UTF8 2013-07-16 17:14:33 +00:00
CrashRecoveryContext.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
DataExtractor.h
DataStream.h
DataTypes.h.cmake Remove dead or useless header checks from cmake and autoconf 2013-07-26 16:54:23 +00:00
DataTypes.h.in Remove dead or useless header checks from cmake and autoconf 2013-07-26 16:54:23 +00:00
Debug.h [Modules] Make Support/Debug.h modular. This requires it to not change 2014-04-21 22:55:11 +00:00
Disassembler.h
DOTGraphTraits.h
Dwarf.h Comment to describe the debug_loc.dwo constants 2014-03-31 23:50:20 +00:00
DynamicLibrary.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
ELF.h [Mips] Add more special values for the st_other field in the symbol 2014-04-20 21:05:36 +00:00
Endian.h Support: Functions for consuming endian specific data from a buffer. 2014-03-25 01:04:44 +00:00
EndianStream.h Support: Functions for writing endian specific data to streams. 2014-03-28 19:14:43 +00:00
Errno.h
ErrorHandling.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
ErrorOr.h [C++11] Replace LLVM-style type traits with C++11 standard ones. 2014-03-07 14:42:25 +00:00
FEnv.h
FileOutputBuffer.h [C++11] Add overloads for externally used OwningPtr functions. 2014-03-05 10:27:34 +00:00
FileSystem.h [C++11] Replace some comparisons with 'nullptr' with simple boolean checks to reduce verbosity. 2014-04-09 04:20:00 +00:00
FileUtilities.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
Format.h [C+11] Add 'override' keyword to methods in the support library. 2014-03-04 06:24:11 +00:00
FormattedStream.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
GCOV.h Use unique_ptr to manage ownership of GCOVFunctions, Blocks, and Edges. 2014-04-21 21:40:16 +00:00
GenericDomTree.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-14 00:51:57 +00:00
GenericDomTreeConstruction.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-14 00:51:57 +00:00
GraphWriter.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
Host.h Return a StringRef from getHostCPUName. 2013-12-12 15:45:32 +00:00
IncludeFile.h
LEB128.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
LICENSE.TXT
LineIterator.h LineIterator: Add DataTypes.h for int64_t on MSVC. 2014-04-18 16:57:01 +00:00
Locale.h
LockFileManager.h [Support] Modify LockFileManager::waitForUnlock() to return info about how the lock was released. 2014-04-06 03:19:31 +00:00
MachO.h ARM64: initial backend import 2014-03-29 10:18:08 +00:00
ManagedStatic.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
MathExtras.h [Allocator Cleanup] Move generic pointer alignment helper out of an 2014-03-28 09:08:14 +00:00
MD5.h Actually include the ArrayRef header rather than rely on the forward 2014-03-07 21:30:49 +00:00
Memory.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
MemoryBuffer.h [Modules] Fix a layering issue that is actually impacting the modules 2014-03-06 04:13:12 +00:00
MemoryObject.h
Mutex.h
MutexGuard.h
OnDiskHashTable.h OnDiskHashTable: Audit types and use offset_type consistently 2014-04-19 00:33:15 +00:00
OutputBuffer.h
Path.h Introduce llvm::sys::path::home_directory. 2014-01-31 23:46:06 +00:00
PluginLoader.h
PointerLikeTypeTraits.h
PrettyStackTrace.h [C++11] Remove 'virtual' keyword from methods marked with 'override' keyword. 2014-03-10 03:53:12 +00:00
Process.h [C+11] Add 'override' keyword to methods in the support library. 2014-03-04 06:24:11 +00:00
Program.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
raw_os_ostream.h [C++11] Remove 'virtual' keyword from methods marked with 'override' keyword. 2014-03-10 03:53:12 +00:00
raw_ostream.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
Recycler.h [Allocator] Stop forward-declaring BumpPtrAllocator in a few places. 2014-03-30 11:36:29 +00:00
RecyclingAllocator.h Add an assertion to the fixed-size allocator to ensure that we don't request 2013-08-27 11:20:13 +00:00
Regex.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
Registry.h Use unique_ptr for the result of Registry entries. 2014-04-15 05:53:26 +00:00
RegistryParser.h
RWMutex.h
SaveAndRestore.h SaveAndRestore: fix coding style and Doxygenify comments 2014-04-10 09:44:32 +00:00
Signals.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
SMLoc.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
Solaris.h
SourceMgr.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
StreamableMemoryObject.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
StringPool.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
StringRefMemoryObject.h Switch all uses of LLVM_OVERRIDE to just use 'override' directly. 2014-03-02 09:09:27 +00:00
SwapByteOrder.h
system_error.h [C++11] Make use of 'nullptr' in the Support library. 2014-04-07 04:17:22 +00:00
SystemUtils.h Move PrependMainExecutablePath next to its only user. 2013-06-14 15:12:13 +00:00
TargetRegistry.h [MC] Require an MCContext when constructing an MCDisassembler. 2014-04-15 04:40:56 +00:00
TargetSelect.h
Threading.h
ThreadLocal.h
Timer.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-14 00:51:57 +00:00
TimeValue.h Remove TimeValue::toPosixTime() -- it is buggy, semantics are unclear, and its 2014-02-11 09:11:18 +00:00
ToolOutputFile.h Don't make F_None the default. 2014-02-24 15:07:20 +00:00
type_traits.h [C++11] Now that the users are gone, rip out the duplicated traits from type_traits.h 2014-03-07 15:54:23 +00:00
Unicode.h Move generic isPrint and columnWidth implementations to a separate header/source to allow using both generic and system-dependent versions on win32. 2013-09-04 16:00:12 +00:00
UnicodeCharRanges.h [Modules] Make Support/Debug.h modular. This requires it to not change 2014-04-21 22:55:11 +00:00
Valgrind.h Don't mark the declarations of the TSan annotation functions as weak. 2014-03-30 11:20:25 +00:00
Watchdog.h
Win64EH.h Partially roll back r202915. 2014-03-05 00:43:02 +00:00
YAMLParser.h [Allocator] Pass the size to the deallocation function. This, on some 2014-04-15 08:59:52 +00:00
YAMLTraits.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00