- May 06, 2009
-
-
Zhongxing Xu authored
future we would create ElementRegion directly on top of typeless regions. llvm-svn: 71075
-
Zhongxing Xu authored
llvm-svn: 71074
-
Daniel Dunbar authored
- Default to yonah on Darwin (to get SSE3). - Default to Pentium4 (32-bit) and x86-64 (64-bit) on non-Darwin. Welcome to the 21st century. llvm-svn: 71069
-
Anders Carlsson authored
llvm-svn: 71067
-
Douglas Gregor authored
llvm-svn: 71066
-
rdar://6860124Chris Lattner authored
This recognizes all the target-independent constant constraints that have target-specific meanings. llvm-svn: 71064
-
Daniel Dunbar authored
- This is a WIP... - This adds -march= handling to the driver, and fixes the defaulting of -mcpu on Darwin (which was using the wrong test). Instead of handling -m{sse, ...} in the driver, pass them to clang-cc as -target-feature [+-]name In clang-cc, communicate with the (clang) target to discover the legal features of a target, and the features which are enabled based on -mcpu. This is currently hardcoded just enough to not be a feature regression, we need to get this information from the backend's TableGen information somehow. This is used to construct the full list of features which are being used, which is in turn used to initialize the predefines. llvm-svn: 71061
-
Zhongxing Xu authored
llvm-svn: 71060
-
Zhongxing Xu authored
RegionStore. This CastRegion() performs casts according to the kind of the region being cast instead of the type that is cast to. llvm-svn: 71058
-
Daniel Dunbar authored
- Currently just an alias for --analyze, eventually we want to refit --analyze so that it is less automatic (i.e., does not force plist output and does not hard code the list of checks). llvm-svn: 71056
-
Fariborz Jahanian authored
llvm-svn: 71041
-
Ted Kremenek authored
start of 'do' and '@synchronized' statements. llvm-svn: 71038
-
Ted Kremenek authored
block. This makes it a little easier for diagnostics generation. llvm-svn: 71037
-
Ted Kremenek authored
about Exprs that are not consumed and fix where the loop iteration diagnostic goes. llvm-svn: 71027
-
Ted Kremenek authored
are ParenExpr or CastExprs. llvm-svn: 71026
-
rdar://6849429Chris Lattner authored
Fix rdar://6849429 - -Wunused-value with deeply nested macro expansion generates untraceable warnings The "instantiated from" messages coming from the caret diagnostics system are basically walking the macro expansion tree, emitting each level as it goes. However, it was skipping certain leaves in the tree by skipping up the entire instantiation arm every time it went up one spelling arm. This caused it to miss some things. For example, in this testcase: #define M1(x) x #define M2 1; void foo() { M1(M2) } we now print: /Users/sabre/Desktop/clang-unused-value-macro.c:6:2: warning: expression result unused M1(M2) ^~~~~~ /Users/sabre/Desktop/clang-unused-value-macro.c:6:5: note: instantiated from: M1(M2) ^~ /Users/sabre/Desktop/clang-unused-value-macro.c:3:12: note: instantiated from: #define M2 1; ^ Previously we didn't print the last line, so we never emitted the caret pointing to the 1! Incidentally, the spaces between the lines is really noisy, I think we should reconsider this heuristic (which adds them when the printed code starts too close to the start of the line). The regression test can't use -verify, because -verify doesn't catch notes for macro instantiation history. llvm-svn: 71025
-
- May 05, 2009
-
-
Fariborz Jahanian authored
Patch by David Chisnall. llvm-svn: 71023
-
Ted Kremenek authored
llvm-svn: 70990
-
Fariborz Jahanian authored
in a 'Class' receiver which is not a root instance method. llvm-svn: 70987
-
Chris Lattner authored
to go back and clean up existing uses of the bitcasted function. This is not just an optimization: it is required for correctness to get always inline functions to work, see testcases in function-attributes.c. llvm-svn: 70971
-
Chris Lattner authored
types. In this case, it was objc_selector and objc_class. This fixes rdar://6852754 - clang sometimes generates incorrect/unknown file/line info for DW_TAG__structure_type dies llvm-svn: 70969
-
Chris Lattner authored
DIEs. We were generating a loc with line of 0 and a file. These tags do not need locations at all, just remove it. this fixes rdar://6852792 - Clang generates incorrect (and unnecessary) file and line info for DW_TAG_inheritance dies llvm-svn: 70966
-
Chris Lattner authored
in ObjC) to not emit file/line location information. Previously we would output a file with bogus line information. This fixes: rdar://6852814 - Clang generates incorrect file & line info for automatic/understood formal parameters for objc-programs llvm-svn: 70965
-
Douglas Gregor authored
composite pointer type, and his is better! Updated relational- and equality-operator checking accordingly. llvm-svn: 70963
-
Anders Carlsson authored
Refactor global decls to hold either a regular Decl or a CXXConstructorDecl + ctor type or a CXXDestructorDecl + dtor type. llvm-svn: 70962
-
Ted Kremenek authored
llvm-svn: 70952
-
Daniel Dunbar authored
llvm-svn: 70951
-
Ted Kremenek authored
ns_ownership_returns -> ns_returns_owned ns_ownership_retain -> ns_retains ns_ownership_release -> ns_releases cf_ownership_retain -> cf_retains cf_ownership_release -> cf_releases llvm-svn: 70949
-
Ted Kremenek authored
llvm-svn: 70946
-
Ted Kremenek authored
llvm-svn: 70943
-
Ted Kremenek authored
llvm-svn: 70941
-
Ted Kremenek authored
llvm-svn: 70940
-
Fariborz Jahanian authored
objc_assign_global API when assigning to global objective-c object pointer. llvm-svn: 70939
-
Daniel Dunbar authored
compensating for super classes). This was making the reported class sizes for empty classes very, very wrong. - Also, we now report the size info for an empty class like gcc (as the offset of the start, not as 0, 0). - Add a few more test cases we were mishandling before (padding bit field at end of struct, for example). llvm-svn: 70938
-
- May 04, 2009
-
-
Daniel Dunbar authored
layout. - This is much simpler / more efficient. - This also properly computes the size in the presence of bit-fields. llvm-svn: 70916
-
Fariborz Jahanian authored
llvm-svn: 70901
-
Ted Kremenek authored
llvm-svn: 70897
-
Chris Lattner authored
function calls. For a program like this: #include <stdio.h> static __inline__ __attribute__((always_inline)) int bar(int x) { return 4; } int main() { int X = bar(4); printf("%d\n", X); } clang was not outputing any debug info for the body of main(). This is because the backend is getting confused by the region_start/end that clang is emitting for block scopes. For now, just disable these (matching llvm-gcc), this stuff is in progress of rework anyway. llvm-svn: 70889
-
Ted Kremenek authored
control-flow expressions as dead. llvm-svn: 70887
-
Ted Kremenek authored
'==' and '!=' (some code in the '!=' was not replicated in the '==' code, causing some constraints to get lost). llvm-svn: 70885
-