llvm-6502/include/llvm/Support
Reid Kleckner 221f6d777e Use Clang's __has_* macros in Compiler.h to test for features
When targetting Windows, clang does not define __GNUC__, and as a result
we don't use our attributes with it.  This leads to warnings about
unused functions that are already annotated with LLVM_ATTRIBUTE_UNUSED.
Rather than testing for __clang__, we can use its __has_attribute and
__has_builtin macros directlty.

While I'm here, conditionally define and use __GNUC_PREREQ for gcc
version checks.  Spelling the check out with three comparisons is
verbose and error prone.

Reviewers: aaron.ballman

Differential Revision: http://llvm-reviews.chandlerc.com/D1080

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185831 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-08 15:31:29 +00:00
..
AIXDataTypesFix.h
AlignOf.h
Allocator.h
ArrayRecycler.h
Atomic.h
BlockFrequency.h Fix typo in comment 2013-07-02 04:15:28 +00:00
BranchProbability.h
CallSite.h Extend 'readonly' and 'readnone' to work on function arguments as well as 2013-07-06 00:29:58 +00:00
Capacity.h
Casting.h
CBindingWrapping.h Fix file header comment. 2013-05-01 21:01:06 +00:00
CFG.h Enable pod-like optimizations for pred and succ iterators. 2013-05-20 13:12:58 +00:00
circular_raw_ostream.h
CodeGen.h This exposes more MCJIT options via the C API: 2013-05-01 22:58:00 +00:00
COFF.h [PECOFF] Remove COFF header from PE header for simplicity. 2013-06-11 21:39:48 +00:00
CommandLine.h Fix 'gcc -flto' builds for unittest binaries (undefined reference to 2013-06-12 14:15:21 +00:00
Compiler.h Use Clang's __has_* macros in Compiler.h to test for features 2013-07-08 15:31:29 +00:00
Compression.h
ConstantFolder.h
ConstantRange.h
ConvertUTF.h
CrashRecoveryContext.h
DataExtractor.h
DataFlow.h
DataStream.h
DataTypes.h.cmake Supporting ssize_t on WIN64 with its proper size. Patch thanks to David Cournapeau! 2013-07-04 14:12:25 +00:00
DataTypes.h.in Changing long to int for consistency. 2013-07-04 17:05:21 +00:00
Debug.h
DebugLoc.h
Disassembler.h
DOTGraphTraits.h
Dwarf.h
DynamicLibrary.h
ELF.h [PowerPC] Add support for TLS data relocations 2013-07-01 23:33:29 +00:00
Endian.h
Errno.h
ErrorHandling.h
ErrorOr.h
FEnv.h
FileOutputBuffer.h
FileSystem.h Remove unique_file now that it is unused. 2013-07-05 21:19:35 +00:00
FileUtilities.h Don't use PathV1.h in FileUtilities.h. 2013-06-13 20:41:00 +00:00
Format.h
FormattedStream.h Add line tracking support to FormattedStream 2013-05-08 20:29:10 +00:00
GCOV.h
GetElementPtrTypeIterator.h Avoid warnings about unused parameters that tend to come up a lot when 2013-06-10 12:09:30 +00:00
GraphWriter.h Convert a use of sys::Path::GetTemporaryDirectory. 2013-06-14 16:43:15 +00:00
Host.h The GNU/HURD is also using the libc. Therefor, endian.h should be included, not machine/endian.h. See full build log https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.3&arch=hurd-i386&ver=1%3A3.3~%2Brc3-1~exp1&stamp=1370358869 2013-06-05 09:17:26 +00:00
IncludeFile.h
InstIterator.h
IntegersSubset.h
IntegersSubsetMapping.h
LeakDetector.h
LEB128.h
LICENSE.TXT
Locale.h
LockFileManager.h
MachO.h
ManagedStatic.h
MathExtras.h Put back variable names because they are referenced in the documentation 2013-06-16 03:22:56 +00:00
MD5.h Add support for adding the contents of a StringRef to the MD5 hash. 2013-05-31 22:34:56 +00:00
Memory.h
MemoryBuffer.h keep only the StringRef version of getFileOrSTDIN. 2013-06-25 05:28:34 +00:00
MemoryObject.h Remove the Copied parameter from MemoryObject::readBytes. 2013-05-24 10:54:58 +00:00
Mutex.h
MutexGuard.h
NoFolder.h
OutputBuffer.h
PassNameParser.h Add missing verb to comment in PassNameParser.h 2013-05-17 16:51:32 +00:00
Path.h Move PathV2.h to Path.h 2013-06-11 22:21:28 +00:00
PatternMatch.h Provide InstCombines for the following 3 cases: 2013-05-06 16:55:50 +00:00
PluginLoader.h
PointerLikeTypeTraits.h
PredIteratorCache.h
PrettyStackTrace.h
Process.h sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman! 2013-06-08 20:29:03 +00:00
Program.h Create a replacement for sys::Path::PathSeparator. 2013-06-25 01:10:36 +00:00
raw_os_ostream.h
raw_ostream.h
Recycler.h
RecyclingAllocator.h Fix RecyclingAllocator::PrintStats to print the underlying allocator's stats. 2013-05-25 01:47:42 +00:00
Regex.h
Registry.h [Support/Registry.h] Include llvm/Support/Compiler.h. 2013-06-27 17:57:40 +00:00
RegistryParser.h
RWMutex.h
SaveAndRestore.h
Signals.h Don't use PathV1.h in Signals.h. 2013-06-13 21:16:58 +00:00
SMLoc.h
Solaris.h Define BYTE_ORDER on Solaris. 2013-05-21 20:36:13 +00:00
SourceMgr.h Add ArrayRef constructor from None, and do the cleanups that this constructor enables 2013-05-05 00:40:33 +00:00
StreamableMemoryObject.h Remove the Copied parameter from MemoryObject::readBytes. 2013-05-24 10:54:58 +00:00
StringPool.h
StringRefMemoryObject.h Remove the Copied parameter from MemoryObject::readBytes. 2013-05-24 10:54:58 +00:00
SwapByteOrder.h
system_error.h
SystemUtils.h Move PrependMainExecutablePath next to its only user. 2013-06-14 15:12:13 +00:00
TargetFolder.h
TargetRegistry.h Avoid warnings about unused parameters that tend to come up a lot when 2013-06-10 12:09:30 +00:00
TargetSelect.h
Threading.h
ThreadLocal.h
Timer.h
TimeValue.h
ToolOutputFile.h Don't use PathV1.h in LTOCodeGenerator.cpp 2013-06-17 18:05:35 +00:00
type_traits.h
Valgrind.h
ValueHandle.h
Watchdog.h
Win64EH.h
YAMLParser.h Use only explicit bool conversion operators 2013-05-15 07:36:59 +00:00
YAMLTraits.h