1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/tools/llvm-objcopy
Zachary Turner ab809dc2fa [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
..
CMakeLists.txt Reland "[LLVM][llvm-objcopy] Added basic plumbing to get things started" 2017-08-01 00:33:58 +00:00
llvm-objcopy.cpp [ADT] Make Twine's copy constructor private. 2017-10-11 23:33:06 +00:00
llvm-objcopy.h [ADT] Make Twine's copy constructor private. 2017-10-11 23:33:06 +00:00
LLVMBuild.txt Reland "[llvm][llvm-objcopy] Added support for outputting to binary in llvm-objcopy" 2017-08-04 21:09:26 +00:00
Object.cpp [ADT] Make Twine's copy constructor private. 2017-10-11 23:33:06 +00:00
Object.h [ADT] Make Twine's copy constructor private. 2017-10-11 23:33:06 +00:00