1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/lib
Pete Cooper b5af4a9342 Don't generate comments in the DebugLocStream unless required. NFC.
The ByteStreamer here wasn't taking account of whether the asm streamer was text based and verbose.  Only with that combination should we emit comments.

This change makes sure that we only actually convert a Twine to a string using Twine::str() if we need the comment.  This saves about 10000 small allocations on a test case involving the verify-use_list-order bitcode going through llc with debug info.

Note, this is NFC as the comments would ultimately never be emitted unless required.

Reviewed by Duncan Exon Smith and David Blaikie.

llvm-svn: 237851
2015-05-20 22:51:27 +00:00
..
Analysis Reapply r237539 with a fix for the Chromium build. 2015-05-20 18:41:25 +00:00
AsmParser AsmParser: Require a terminating null character when creating memory buffer. 2015-05-20 20:41:27 +00:00
Bitcode [BitcodeReader] Error out if we read an invalid function argument type 2015-05-19 01:21:06 +00:00
CodeGen Don't generate comments in the DebugLocStream unless required. NFC. 2015-05-20 22:51:27 +00:00
DebugInfo [DWARF parser] Make DWARF parser more robust against missing compile/type units. 2015-05-19 21:54:32 +00:00
ExecutionEngine [RuntimeDyld] Use isInt to assert that a relocation didn't overflow 2015-05-15 20:32:25 +00:00
Fuzzer [lib/Fuzzer] change the meaning of -timeout flag: now timeout is applied to every unit of work separately 2015-05-19 22:12:57 +00:00
IR [opaque pointer type] Pass explicit type to Load instruction creation in AutoUpgrade 2015-05-20 21:46:30 +00:00
IRReader
LineEditor
Linker While in GlobalValue fix the function(s) that don't follow the 2015-05-15 18:20:14 +00:00
LTO LTO: Add API to choose whether to embed uselists 2015-04-27 23:38:54 +00:00
MC MC: Remove most remaining uses of MCSymbolData::getSymbol(), NFC 2015-05-20 20:18:16 +00:00
Object Remove MCAssembler.h include from MCStreamer.h and fix users of MCStreamer.h 2015-05-15 22:19:42 +00:00
Option Option parsing: properly handle flag aliases for joined options (PR23394) 2015-05-04 18:00:13 +00:00
Passes
ProfileData InstrProf: Treat functions with a coverage map but no profile as unreached 2015-05-13 22:03:04 +00:00
Support Get Triple::getARMCPUForArch() to use TargetParser 2015-05-20 15:05:07 +00:00
TableGen [TableGen] Make some variable names consistent with their type names and just generally consistent across all of the overloads. 2015-05-20 05:40:13 +00:00
Target Revert r237828 "[X86] Remove unused node after morphing it from shr to and." 2015-05-20 22:31:55 +00:00
Transforms Reapply r237539 with a fix for the Chromium build. 2015-05-20 18:41:25 +00:00
CMakeLists.txt
LLVMBuild.txt Reflow long lines of some LLVMBuild files 2015-05-14 15:38:27 +00:00
Makefile