llvm-6502/lib/MC
Alp Toker 2559070422 Introduce a string_ostream string builder facilty
string_ostream is a safe and efficient string builder that combines opaque
stack storage with a built-in ostream interface.

small_string_ostream<bytes> additionally permits an explicit stack storage size
other than the default 128 bytes to be provided. Beyond that, storage is
transferred to the heap.

This convenient class can be used in most places an
std::string+raw_string_ostream pair or SmallString<>+raw_svector_ostream pair
would previously have been used, in order to guarantee consistent access
without byte truncation.

The patch also converts much of LLVM to use the new facility. These changes
include several probable bug fixes for truncated output, a programming error
that's no longer possible with the new interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211749 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-26 00:00:48 +00:00
..
MCDisassembler Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
MCParser Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
CMakeLists.txt [ARM] [MC] Refactor the constant pool classes 2014-06-18 18:17:25 +00:00
ConstantPools.cpp [ARM] [MC] Refactor the constant pool classes 2014-06-18 18:17:25 +00:00
ELFObjectWriter.cpp Convert some assert(0) to llvm_unreachable or fold an 'if' condition into the assert. 2014-06-19 06:10:58 +00:00
LLVMBuild.txt
MachObjectWriter.cpp MachO: support N_INDR aliases in assembly files. 2014-05-30 13:22:59 +00:00
Makefile
MCAsmBackend.cpp
MCAsmInfo.cpp Print a=b as an assignment. 2014-06-24 22:45:16 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmStreamer.cpp Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
MCAssembler.cpp Report error for non-zero data in .bss 2014-06-22 00:33:44 +00:00
MCAtom.cpp
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCContext.cpp Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
MCDisassembler.cpp
MCDwarf.cpp Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
MCELF.cpp
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Print a=b as an assignment. 2014-06-24 22:45:16 +00:00
MCExpr.cpp [mips][mips64r6] Add Relocations R_MIPS_PCHI16, R_MIPS_PCLO16 2014-05-27 14:58:51 +00:00
MCExternalSymbolizer.cpp
MCFunction.cpp
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp Print a=b as an assignment. 2014-06-24 22:45:16 +00:00
MCModule.cpp
MCModuleYAML.cpp Remove 'using std::errro_code' from lib. 2014-06-13 02:24:39 +00:00
MCNullStreamer.cpp Merge the used symbol scanning of MCObjectStreamer and RecordStreamer. 2014-06-25 18:37:33 +00:00
MCObjectDisassembler.cpp
MCObjectFileInfo.cpp Re-apply r211399, "Generate native unwind info on Win64" with a fix to ignore SEH pseudo ops in X86 JIT emitter. 2014-06-25 12:41:52 +00:00
MCObjectStreamer.cpp Merge the used symbol scanning of MCObjectStreamer and RecordStreamer. 2014-06-25 18:37:33 +00:00
MCObjectSymbolizer.cpp
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCRelocationInfo.cpp
MCSection.cpp
MCSectionCOFF.cpp Fix a few issues with comdat handling on COFF. 2014-06-06 19:26:12 +00:00
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Merge the used symbol scanning of MCObjectStreamer and RecordStreamer. 2014-06-25 18:37:33 +00:00
MCSubtargetInfo.cpp ArrayRef-ize the Feature and Processor tables for SubtargetFeatures. 2014-05-06 20:23:04 +00:00
MCSymbol.cpp
MCSymbolizer.cpp
MCTargetOptions.cpp Move -dwarf-version to an MC level command line option so it's 2014-06-19 06:22:08 +00:00
MCValue.cpp
MCWin64EH.cpp
SubtargetFeature.cpp Make the split function use StringRef::split. 2014-05-13 19:55:17 +00:00
WinCOFFObjectWriter.cpp MC: prevent early DCE of empty sections 2014-06-06 21:40:16 +00:00
WinCOFFStreamer.cpp Print a=b as an assignment. 2014-06-24 22:45:16 +00:00