llvm-project/llvm/lib/Object
Zachary Turner 337462b365 [ADT] Make Twine's copy constructor private.
There's a lot of misuse of Twine scattered around LLVM.  This
ranges in severity from benign (returning a Twine from a function
by value that is just a string literal) to pretty sketchy (storing
a Twine by value in a class).  While there are some uses for
copying Twines, most of the very compelling ones are confined
to the Twine class implementation itself, and other uses are
either dubious or easily worked around.

This patch makes Twine's copy constructor private, and fixes up
all callsites.

Differential Revision: https://reviews.llvm.org/D38767

llvm-svn: 315530
2017-10-11 23:33:06 +00:00
..
Archive.cpp Rename K_MIPS64 to K_GNU64 2017-09-20 18:23:01 +00:00
ArchiveWriter.cpp Pre-compute the tail of the archive 2017-10-03 20:59:43 +00:00
Binary.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
CMakeLists.txt Bitcode: Write the irsymtab to disk. 2017-06-27 23:50:11 +00:00
COFFImportFile.cpp Convert the archive writer to use Error. 2017-09-21 23:13:36 +00:00
COFFModuleDefinition.cpp [llvm-dlltool] Fix creating stdcall/fastcall import libraries for i386 2017-08-16 05:18:36 +00:00
COFFObjectFile.cpp Convert the last uses of ErrorOr in COFF.h. 2017-10-11 17:33:11 +00:00
Decompressor.cpp Revert "[Decompression] Fail gracefully when out of memory" 2017-09-05 22:04:00 +00:00
ELF.cpp [ARC] Prepare the implementation of relocation for LLD 2017-09-13 01:49:49 +00:00
ELFObjectFile.cpp Make the ELFObjectFile constructor private. 2017-10-10 21:21:16 +00:00
Error.cpp [ADT] Make Twine's copy constructor private. 2017-10-11 23:33:06 +00:00
IRObjectFile.cpp Convert the last uses of ErrorOr in include/llvm/Object. 2017-10-11 18:07:18 +00:00
IRSymtab.cpp Object: Downgrade invalid weak externals from an assert fail to an llvm::Error when creating an irsymtab. 2017-09-07 01:33:52 +00:00
LLVMBuild.txt Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
MachOObjectFile.cpp [dwarfdump] Skip 'stripped' sections 2017-09-26 14:22:35 +00:00
MachOUniversal.cpp Fix a bugs with using some Mach-O command line flags like "-arch armv7m". 2016-12-16 22:54:02 +00:00
ModuleSymbolTable.cpp Don't pass the code model to MC 2017-08-02 20:32:26 +00:00
Object.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ObjectFile.cpp Convert two uses of ErrorOr to Expected. 2017-10-10 20:00:07 +00:00
RecordStreamer.cpp [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-24 23:21:38 +00:00
RecordStreamer.h [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-24 23:21:38 +00:00
SymbolSize.cpp Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizes 2016-11-15 21:07:03 +00:00
SymbolicFile.cpp Convert the last uses of ErrorOr in include/llvm/Object. 2017-10-11 18:07:18 +00:00
WasmObjectFile.cpp [WebAssembly] Allow each data segment to specify its own alignment 2017-09-29 16:50:08 +00:00
WindowsResource.cpp Fix bug 34051 by handling empty .res files gracefully. 2017-08-24 02:36:50 +00:00