- Jan 31, 2012
-
-
Chris Lattner authored
ConstantDataArray::getString instead. Many instances of ConstantArray::get() could be moved to use more efficient ConstantDataArray methods that avoid a ton of intermediate Constant*'s for each element (e.g. GetConstantArrayFromStringLiteral). I don't plan on doing this in the short-term though. llvm-svn: 149363
-
Ted Kremenek authored
Don't warn about -Wshorten-64-to-32 in unreachable code. Fixes <rdar://problem/10759934>. Apparently this is a common idiom in Linux (among other places). llvm-svn: 149359
-
Ted Kremenek authored
llvm-svn: 149358
-
Chris Lattner authored
as well as ConstantArray. llvm-svn: 149347
-
Richard Smith authored
-INT_MIN and INT_MIN / -1 Shift by a negative or too large quantity Left shift of negative value Overflow in left shift llvm-svn: 149344
-
Argyrios Kyrtzidis authored
Original log: Convert ProgramStateRef to a smart pointer for managing the reference counts of ProgramStates. This leads to a slight memory improvement, and a simplification of the logic for managing ProgramState objects. # Please enter the commit message for your changes. Lines starting llvm-svn: 149339
-
Chandler Carruth authored
driver based on discussions with Doug Gregor. There are several issues: 1) The patch was not reviewed prior to commit and there were review comments. 2) The design of the functionality (triple-prefixed tool invocation) isn't the design we want for Clang going forward: it focuses on the "user triple" rather than on the "toolchain triple", and forces that bit of state into the API of every single toolchain instead of handling it automatically in the common base classes. 3) The tests provided are not stable. They fail on a few Linux variants (Gentoo among them) and on mingw32 and some other environments. I *am* interested in the Clang driver being able to invoke triple-prefixed tools, but we need to design that feature the right way. This patch just extends the previous hack without fixing the underlying problems with it. I'm working on a new design for this that I will mail for review by tomorrow. I am aware that this removes functionality that NetBSD relies on, but this is ToT, not a release. This functionality hasn't been properly designed, implemented, and tested yet. We can't "regress" until we get something that really works, both with the immediate use cases and with long term maintenance of the Clang driver. For reference, the original commit log: Keep track of the original target the user specified before normalization. This used to be captured in DefaultTargetTriple and is used for the (optional) $triple-$tool lookup for cross-compilation. Do this properly by making it an attribute of the toolchain and use it in combination with the computed triple as index for the toolchain lookup. llvm-svn: 149337
-
Argyrios Kyrtzidis authored
Original log: Convert ProgramStateRef to a smart pointer for managing the reference counts of ProgramStates. This leads to a slight memory improvement, and a simplification of the logic for managing ProgramState objects. llvm-svn: 149336
-
Nico Weber authored
Fixes PR11867. Patch from Jeremy Huddleston! llvm-svn: 149334
-
Richard Smith authored
As Eli points out, this is implementation-defined, and the way we define it makes this fine. llvm-svn: 149327
-
Nico Weber authored
As discussed at http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120130/052200.html llvm-svn: 149325
-
Eli Friedman authored
llvm-svn: 149321
-
Ted Kremenek authored
llvm-svn: 149320
-
Ted Kremenek authored
llvm-svn: 149319
-
Fariborz Jahanian authored
llvm-svn: 149313
-
Ted Kremenek authored
Convert ProgramStateRef to a smart pointer for managing the reference counts of ProgramStates. This leads to a slight memory improvement, and a simplification of the logic for managing ProgramState objects. llvm-svn: 149311
-
Ted Kremenek authored
llvm-svn: 149310
-
Nico Weber authored
llvm-svn: 149301
-
Fariborz Jahanian authored
argument. twik to support the test case. // rdar://10444476 llvm-svn: 149298
-
- Jan 30, 2012
-
-
Richard Smith authored
expressions in C++11. llvm-svn: 149286
-
Nico Weber authored
Fixes PR11867. Patch from Jeremy Huddleston! llvm-svn: 149285
-
Douglas Gregor authored
cyclic module dependency due to its inclusion of math.h and complex.h. I'll take another shot at it later. llvm-svn: 149283
-
Fariborz Jahanian authored
consume one or more of their arguments. If not done, this will cause a leak as method will not consume the argument when receiver is null. In this patch, the null path releases consumed argument. // rdar://10444474 llvm-svn: 149279
-
Anna Zaks authored
from the driver. llvm-svn: 149276
-
Jean-Daniel Dupas authored
This is to prevent diagnostic when using NSLocalizedString or CFCopyLocalizedString macros which are usually used in place of NS and CF strings literals. llvm-svn: 149268
-
Anna Zaks authored
llvm-svn: 149258
-
Douglas Gregor authored
llvm-svn: 149257
-
John McCall authored
mangling of floating-point literals. I just went ahead and reimplemented toString() here; if someone wants to generalize the library routine to do this, or feels strongly that we should be post-processing, please feel free. llvm-svn: 149256
-
Benjamin Kramer authored
llvm-svn: 149253
-
Chandler Carruth authored
'-target'. The original flag was part of a flag group that marked it as driver-only. The new flag didn't ever get equivalent treatment. This caused the '-target' flag to get passed down to any raw GCC invocation. Marking it as a driver option fixes this and PR11875. llvm-svn: 149244
-
Craig Topper authored
llvm-svn: 149237
-
Jean-Daniel Dupas authored
- Remove the printf0 special handling as we treat it as printf anyway. - Perform basic checks (non-literal, empty) for all formats and not only printf/scanf. llvm-svn: 149236
-
Craig Topper authored
Remove custom handling for cmpsd/cmpss/cmppd/cmpps builtins. The builtins are now in IntrinsicsX86.td. llvm-svn: 149235
-
Craig Topper authored
Cleanup 3dnow builtin handling. Most of them were already handled by LLVM connecting intrinsics and builtins in IntrinsicsX86.td. llvm-svn: 149233
-
Anna Zaks authored
llvm-svn: 149228
-
Douglas Gregor authored
each of the targets. Use this for module requirements, so that we can pin the availability of certain modules to certain target features, e.g., provide a module for xmmintrin.h only when SSE support is available. Use these feature names to provide a nearly-complete module map for Clang's built-in headers. Only mm_alloc.h and unwind.h are missing, and those two are fairly specialized at the moment. Finishes <rdar://problem/10710060>. llvm-svn: 149227
-
Chris Lattner authored
recently. This also conveniently gets clang ready for a change about to land in mainline. llvm-svn: 149225
-
Douglas Gregor authored
target-specific module requirements. llvm-svn: 149224
-
NAKAMURA Takumi authored
llvm-svn: 149220
-
Douglas Gregor authored
llvm-svn: 149214
-