llvm-6502/include/llvm/Support
Hans Wennborg 4f240010fd BumpPtrAllocator: do the size check without moving any pointers
Instead of aligning and moving the CurPtr forward, and then comparing
with End, simply calculate how much space is needed, and compare that
to how much is available.

Hopefully this avoids any doubts about comparing addresses possibly
derived from past the end of the slab array, overflowing, etc.

Also add a test where aligning CurPtr would move it past End.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217330 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-07 04:24:31 +00:00
..
AIXDataTypesFix.h
AlignOf.h
Allocator.h BumpPtrAllocator: do the size check without moving any pointers 2014-09-07 04:24:31 +00:00
ARMBuildAttributes.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ARMEHABI.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ARMWinEH.h Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created. 2014-08-27 05:25:25 +00:00
ArrayRecycler.h
Atomic.h
BlockFrequency.h
BranchProbability.h
Capacity.h
Casting.h
CBindingWrapping.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
circular_raw_ostream.h
CodeGen.h
COFF.h
CommandLine.h Fix PR17239 by changing the semantics of the RemainingArgsClass Option kind 2014-08-22 19:29:17 +00:00
Compiler.h Use returns_nonnull in BumpPtrAllocator and MallocAllocator to avoid null-check in placement new 2014-08-21 17:10:00 +00:00
Compression.h
ConvertUTF.h
CrashRecoveryContext.h Add override to overriden virtual methods, remove virtual keywords. 2014-09-03 11:41:21 +00:00
DataExtractor.h
DataStream.h
DataTypes.h.cmake DataTypes.h.cmake: Define PRIx32 &c for !HAVE_INTTYPES_H hosts. 2014-08-08 17:00:47 +00:00
DataTypes.h.in
Debug.h
DOTGraphTraits.h
Dwarf.h [ dwarfdump ] Add symbolic dump of known DWARF attribute values. 2014-09-04 19:39:20 +00:00
DynamicLibrary.h Fix some semantic usability issues with DynamicLibrary. 2014-08-27 18:13:25 +00:00
ELF.h AArch64: add support for dynamic-loader relocations 2014-08-11 10:10:27 +00:00
Endian.h Fix unaligned reads/writes in X86JIT and RuntimeDyldELF. 2014-08-27 23:06:08 +00:00
EndianStream.h Fixed a build problem when there were headers 2014-08-30 02:30:02 +00:00
Errc.h
Errno.h
ErrorHandling.h
ErrorOr.h Ensure ErrorOr cannot implicitly invoke explicit ctors of the underlying type. 2014-09-03 17:31:25 +00:00
FileOutputBuffer.h unique_ptrify FileOutputBuffer::FileOutputBuffer 2014-09-02 17:49:23 +00:00
FileSystem.h Remove dead code. Fixes pr20544. 2014-08-08 21:35:52 +00:00
FileUtilities.h
Format.h Make format_object_base's destructor protected and non-virtual. 2014-08-21 11:22:05 +00:00
FormattedStream.h
GCOV.h test commit: remove trailing space 2014-07-23 17:18:05 +00:00
GenericDomTree.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
GenericDomTreeConstruction.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
GraphWriter.h
Host.h
LEB128.h [Support] Fix the overflow bug in ULEB128 decoding. 2014-08-22 16:29:45 +00:00
LICENSE.TXT
LineIterator.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Locale.h
LockFileManager.h
MachO.h Adds the next bit of support for llvm-objdump’s -private-headers for executable Mach-O files. 2014-09-04 16:54:47 +00:00
ManagedStatic.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
MathExtras.h BumpPtrAllocator: do the size check without moving any pointers 2014-09-07 04:24:31 +00:00
MD5.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Memory.h
MemoryBuffer.h Return a std::unique_ptr when creating a new MemoryBuffer. 2014-08-27 20:03:13 +00:00
MemoryObject.h
Mutex.h Support: make LLVM Mutexes STL-compatible 2014-08-23 22:49:22 +00:00
MutexGuard.h Support: make LLVM Mutexes STL-compatible 2014-08-23 22:49:22 +00:00
OnDiskHashTable.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
OutputBuffer.h
Path.h Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already. 2014-08-30 16:48:02 +00:00
PluginLoader.h
PointerLikeTypeTraits.h
PrettyStackTrace.h
Process.h
Program.h Add writeFileWithSystemEncoding to LibLLVMSuppor. 2014-09-03 20:02:00 +00:00
RandomNumberGenerator.h
raw_os_ostream.h
raw_ostream.h Modernize raw_fd_ostream's constructor a bit. 2014-08-25 18:16:47 +00:00
Recycler.h
RecyclingAllocator.h
Regex.h
Registry.h
RegistryParser.h
RWMutex.h Support: make LLVM Mutexes STL-compatible 2014-08-23 22:49:22 +00:00
SaveAndRestore.h
ScaledNumber.h
Signals.h
SMLoc.h
Solaris.h
SourceMgr.h Add an explicit move constructor to SrcBuffer 2014-08-21 23:24:08 +00:00
SpecialCaseList.h unique_ptrify the result of SpecialCaseList::create 2014-09-02 18:13:54 +00:00
StreamableMemoryObject.h
StringPool.h
StringRefMemoryObject.h
SwapByteOrder.h
SystemUtils.h
TargetRegistry.h
TargetSelect.h
Threading.h
ThreadLocal.h
Timer.h
TimeValue.h Cleaning up static initializers in TimeValue. 2014-08-29 01:05:12 +00:00
ToolOutputFile.h Modernize raw_fd_ostream's constructor a bit. 2014-08-25 18:16:47 +00:00
type_traits.h
Unicode.h
UnicodeCharRanges.h
UniqueLock.h Support: add llvm::unique_lock 2014-08-23 23:07:14 +00:00
Valgrind.h
Watchdog.h
Win64EH.h
WindowsError.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
YAMLParser.h yaml::Stream doesn't need to take ownership of the buffer. 2014-08-27 19:03:22 +00:00
YAMLTraits.h