llvm-6502/lib
Rafael Espindola 1e3c0a4c77 Don't leak when expanding response files.
Before this patch we would strdup each argument. If one was a response file,
we would replace it with the response file contents, leaking the original
strdup result.

We now don't strdup the originals and let StringSaver free any memory it
allocated. This also saves a bit of malloc traffic when response files are
not used.

Leak found by the valgrind build bot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187042 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-24 14:32:01 +00:00
..
Analysis Treat nothrow forms of ::operator delete and ::operator delete[] as 2013-07-21 23:11:42 +00:00
AsmParser Target/X86: Add explicit Win64 and System V/x86-64 calling conventions. 2013-07-12 06:02:35 +00:00
Bitcode Add a wrapper for open. 2013-07-16 19:44:17 +00:00
CodeGen DAGCombiner: Pass the correct type to TargetLowering::isF(Abs|Neg)Free 2013-07-23 23:55:03 +00:00
DebugInfo DebugInfo: Factor out parsing compile unit DIEs to a separate function. Improve code style and comments. 2013-07-15 08:43:35 +00:00
ExecutionEngine [mips] Use pristine object file while processing relocations. 2013-07-24 01:58:40 +00:00
IR Replace with a "null" RAUW with an assert since we'd actually like 2013-07-24 01:51:12 +00:00
IRReader Add 'const' qualifiers to static const char* variables. 2013-07-16 01:17:10 +00:00
Linker Extend RemapInstruction and friends to take an optional new parameter, a ValueMaterializer. 2013-05-28 15:17:05 +00:00
MC Revert "Remove use of asymmetric std::lower_bound comparator." 2013-07-23 17:44:11 +00:00
Object Delete the buffer in createObjectFile if it fails. 2013-07-24 14:00:26 +00:00
Option Silence gcc warning. 2013-07-22 21:29:28 +00:00
Support Don't leak when expanding response files. 2013-07-24 14:32:01 +00:00
TableGen keep only the StringRef version of getFileOrSTDIN. 2013-06-25 05:28:34 +00:00
Target [test commit] Minor comment change. 2013-07-24 13:02:35 +00:00
Transforms Fix a problem I introduced in r187029 where we would over-eagerly 2013-07-24 12:12:17 +00:00
CMakeLists.txt Move lib/Archive to tools/llvm-ar. 2013-06-17 15:47:20 +00:00
LLVMBuild.txt Move lib/Archive to tools/llvm-ar. 2013-06-17 15:47:20 +00:00
Makefile Move lib/Archive to tools/llvm-ar. 2013-06-17 15:47:20 +00:00