llvm-6502/include/llvm/Support
Rafael Espindola f30ac8f5ec Don't allow pwrite to resize a stream.
The current implementations could exhibit some behavior differences:

raw_fd_ostream: Whatever the underlying fd does with seek+write. In a normal
file, the write position would be back to the old offset.

raw_svector_ostream: The write position is always the end of the stream, so
after pwrite the write position would be the new end. This matches what OS_X
(all BSD?) do with a pwrite in a O_APPEND fd.

Given that we don't need that feature and don't use O_APPEND a lot in LLVM,
just disallow it.

I am open to suggestions on renaming pwrite to something else, but this fixes
the issue for now.

Thanks to Yaron Keren for reporting it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235303 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-20 13:04:30 +00:00
..
ELFRelocs [mips] Update MIPS relocations list 2015-04-19 20:51:55 +00:00
AIXDataTypesFix.h
AlignOf.h Suppressing the C4324 warnings generated by MSVC. This is the only declarative instance that would generate the warning, but it accounted for about 525+ warnings due to template instantiations. This is a marginal-value warning which we may decide to disable more broadly, but since this header is in Support and may be used out of tree, it's a low burden for us to be warning-free in this case. 2015-04-17 19:35:44 +00:00
Allocator.h Mark BumpPtrAllocator::Allocate as returning a noalias pointer. 2015-04-05 17:02:25 +00:00
ARMBuildAttributes.h [AArch64, ARM] Add v8.1a architecture and generic cpu 2015-03-26 17:05:54 +00:00
ARMEHABI.h
ARMWinEH.h
ArrayRecycler.h
Atomic.h
BlockFrequency.h
BranchProbability.h
Capacity.h
Casting.h
CBindingWrapping.h
circular_raw_ostream.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
CodeGen.h
COFF.h
CommandLine.h Recommit r231221: "Devirtualize ~parser<T> by making it protected in base classes and making derived classes final" 2015-03-04 18:52:32 +00:00
Compiler.h Fix some minor abuse of C++ terminology in comments. 2015-04-07 00:14:27 +00:00
Compression.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
ConvertUTF.h
CrashRecoveryContext.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
DataExtractor.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
DataStream.h
DataTypes.h.cmake
DataTypes.h.in
Debug.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
DOTGraphTraits.h
Dwarf.def DebugInfo: Drop fake DW_TAG_expression 2015-03-17 21:32:46 +00:00
Dwarf.h
DynamicLibrary.h
ELF.h Add support for Nuxi CloudABI. 2015-03-09 18:40:45 +00:00
Endian.h InstrProf: Do a better job of reading coverage mapping data. 2015-03-16 06:55:45 +00:00
EndianStream.h
Errc.h
Errno.h
ErrorHandling.h
ErrorOr.h
FileOutputBuffer.h
FileSystem.h Mark empty default constructors as =default if it makes the type POD 2015-04-11 18:57:14 +00:00
FileUtilities.h Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
Format.h use = default instead of {} 2015-03-04 07:35:04 +00:00
FormattedStream.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
GCOV.h
GenericDomTree.h Only recalculate DFS Numbers if invalid. Invalidate DFS numbers on reset. Add unit test to verify recalculation 2015-04-14 19:49:26 +00:00
GenericDomTreeConstruction.h
GraphWriter.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
Host.h
LEB128.h
LICENSE.TXT
LineIterator.h
Locale.h
LockFileManager.h
MachO.h
ManagedStatic.h
MathExtras.h Generic: Make isMask_N and isShiftedMask_N consistent over 0 2015-04-10 22:58:48 +00:00
MD5.h
Memory.h
MemoryBuffer.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
MemoryObject.h
Mutex.h
MutexGuard.h
OnDiskHashTable.h Make OnDiskChainedHashTableGenerator's Bucket type a POD type and reorder fields to optimize padding 2015-04-11 18:00:28 +00:00
Options.h Correct 'teh' and other typos / repeated words. 2015-04-14 20:52:58 +00:00
OutputBuffer.h
Path.h
PluginLoader.h
PointerLikeTypeTraits.h
PrettyStackTrace.h
Process.h
Program.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
RandomNumberGenerator.h
raw_os_ostream.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
raw_ostream.h Don't allow pwrite to resize a stream. 2015-04-20 13:04:30 +00:00
Recycler.h
RecyclingAllocator.h
Regex.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
Registry.h
RegistryParser.h
RWMutex.h
SaveAndRestore.h
ScaledNumber.h
Signals.h Add boolean to PrintStackTraceOnErrorSignal to disable crash reporting. 2015-04-07 20:43:23 +00:00
SMLoc.h
Solaris.h
SourceMgr.h
SpecialCaseList.h
StreamingMemoryObject.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
StringPool.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
SwapByteOrder.h
SystemUtils.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
TargetRegistry.h Use raw_pwrite_stream in the object writer/streamer. 2015-04-14 22:14:34 +00:00
TargetSelect.h
Threading.h
ThreadLocal.h
Timer.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
TimeValue.h
ToolOutputFile.h Don't repeat names in comments. NFC. 2015-04-08 13:52:09 +00:00
type_traits.h
Unicode.h
UnicodeCharRanges.h Make VTs and UnicodeCharSet ctors constexpr if the compiler supports it. 2015-03-01 18:10:07 +00:00
UniqueLock.h
Valgrind.h
Watchdog.h
Win64EH.h
WindowsError.h
YAMLParser.h Purge unused includes throughout libSupport. 2015-03-23 18:07:13 +00:00
YAMLTraits.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00