- Jan 27, 2014
-
-
Alp Toker authored
There are a couple of interesting things here that we want to check over (particularly the expecting asserts in StringRef) and get right for general use in ADT so hold back on this one. For clang we have a workable templated solution to use in the meanwhile. This reverts commit r200187. llvm-svn: 200194
-
Alp Toker authored
We might want try a different strategy so hold back on this for the moment, but fix the off-by-one error in the original function template. This reverts commit r200190. llvm-svn: 200193
-
Rafael Espindola authored
Testing this also found the missing '\n' after .frame that this patch also fixes. llvm-svn: 200192
-
Rui Ueyama authored
editbin.exe and link.exe both accepts /highentropyva option to set this bit, so doing s/VIRTUAL_ADDRESS/VA/ should make sense. llvm-svn: 200191
-
Alp Toker authored
This is one of various functions in clang that don't handle arbitrary strings well and can benefit from compile-time safety checks. Also fixes an off-by-one error that caused one additional null byte to get added to the end of custom diagnostic descriptions. ConstStringRef handles tricky details like that for us now. Requires supporting changes in LLVM r200187. llvm-svn: 200190
-
Richard Smith authored
throw-expression, the result is also a glvalue and isn't unnecessarily coerced to a prvalue. llvm-svn: 200189
-
Alp Toker authored
StringRef is a low-level data wrapper that shouldn't know about language strings like 'true' and 'false' whereas StringExtras is just the place for higher-level utilities. llvm-svn: 200188
-
Alp Toker authored
(1) Add llvm_expect(), an asserting macro that can be evaluated as a constexpr expression as well as a runtime assert or compiler hint in release builds. This technique can be used to construct functions that are both unevaluated and compiled depending on usage. (2) Update StringRef using llvm_expect() to preserve runtime assertions while extending the same checks to static asserts in C++11 builds that support the feature. (3) Introduce ConstStringRef, a strong subclass of StringRef that references compile-time constant strings. It's convertible to, but not from, ordinary StringRef and thus can be used to add compile-time safety to various interfaces in LLVM and clang that only accept fixed inputs such as diagnostic format strings that tend to get misused. llvm-svn: 200187 -
Rafael Espindola authored
llvm-svn: 200186
-
Rui Ueyama authored
llvm-svn: 200185
-
Rui Ueyama authored
The optional header for PE32+ is a bit larger than PE32 because some of its fields are extended to 8 bytes. llvm-svn: 200184
-
Rui Ueyama authored
Relocations for x64 object files should have reference type of KindArch::x86_64. llvm-svn: 200183
-
Shankar Easwaran authored
llvm-svn: 200182
-
Shankar Easwaran authored
The comments in the files that described the file name as part of each file header ran over 80 columns, which clang-format split over multiple lines. This commit fixes to make them appear properly. llvm-svn: 200181
-
Kevin Qin authored
Replace r199791. llvm-svn: 200180
-
Kevin Qin authored
It's old version which has some bugs. I'll commit lattest patch soon. llvm-svn: 200179
-
Rafael Espindola authored
llvm-svn: 200178
-
Shankar Easwaran authored
X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
-
Shankar Easwaran authored
llvm-svn: 200176
-
Shankar Easwaran authored
No change in functionality. llvm-svn: 200175
-
Rafael Espindola authored
llvm-svn: 200174
-
Shankar Easwaran authored
llvm-svn: 200173
-
Shankar Easwaran authored
llvm-svn: 200172
-
Rafael Espindola authored
Sorry about that. llvm-svn: 200171
-
Rafael Espindola authored
llvm-svn: 200170
-
Rafael Espindola authored
llvm-svn: 200169
-
Shankar Easwaran authored
ELFFile would be a class that rest of the targets would derive from. To keep the implementation clean, separate the implementation from rest of the Header file. llvm-svn: 200168
-
Rafael Espindola authored
llvm-svn: 200167
-
Shankar Easwaran authored
No change in functionality. llvm-svn: 200166
-
Shankar Easwaran authored
llvm-svn: 200165
-
Evan Cheng authored
e.g. thumbv7m-apple-ios3.0.0-eabi, then it should mean it's an iOS target. For embedded targets, the OS should be unknown, e.g. thumbv7m-apple-unknown-macho. Since Tim has recently fixed the triple, r195149 is no longer needed. rdar://15911035 llvm-svn: 200164
-
Saleem Abdulrasool authored
Placed the MC variant diagnostics in the wrong directory accidentally. Move them into their respective architecture specific directories. llvm-svn: 200161
-
Saleem Abdulrasool authored
If a complex expression was passed to the .word directive and the first part of the directive failed to parse, a secondary diagnostic would be produced that would clutter the error diagnostics. Improve the diagnostics by consuming the remainder of the statement. llvm-svn: 200160
-
Saleem Abdulrasool authored
An emitted diagnostic for an invalid relocation variant would place the caret on the token following the relocation variant indicator or at the end of the line if there was no following token. This change corrects the placement of the caret to point to the token. llvm-svn: 200159
-
Saleem Abdulrasool authored
Fix indentation, remove unnecessary line. NFC. llvm-svn: 200158
-
Joerg Sonnenberger authored
llvm-svn: 200157
-
Tobias Grosser authored
Count the number of computational steps that have been used to solve the dependence problem and abort in case we reach the "compute-out". This ensures we do not hang forever in cases the dependence problem is too difficult to solve. There is just a single case in the LLVM test-suite that runs into the compute-out. Even in this case, we can probably coalesce some of the parameters (i32 b, i32 b zext i64, ...) to simplify the problem enough to not hit the compute out. However, for now we set the compute out in place to address the general issue. The compute out was choosen such that it stops on a recent laptop after about 8 seconds. llvm-svn: 200156
-
Tobias Grosser authored
This includes the following very useful isl commit: commit d962967ab42323ea5ca0398956fbff6a98c782fa Author: Sven Verdoolaege <skimo@kotnet.org> Date: Wed Dec 18 12:05:32 2013 +0100 allow the user to impose a bound on the number of low-level operations This should allow the user to deterministically limit the effort spent on a computation. llvm-svn: 200155
-
Alp Toker authored
lib/Target/X86/Disassembler/X86DisassemblerDecoder.c:1361:7: error: C++ style comments are not allowed in ISO C90 llvm-svn: 200153
-
Evan Cheng authored
llvm-svn: 200152
-