- Nov 10, 2009
-
-
Evan Cheng authored
llvm-svn: 86706
-
Duncan Sands authored
llvm-svn: 86705
-
Fariborz Jahanian authored
(Ted's feedback). llvm-svn: 86702
-
Fariborz Jahanian authored
global array of objects. llvm-svn: 86701
-
Ted Kremenek authored
CIndex: Only display diagnostics to llvm::errs() when the client has set the 'displayDiagnostics' option to 1 in clang_createIndex(). This fixes <rdar://problem/7370691>. llvm-svn: 86700
-
Mike Stump authored
llvm-svn: 86699
-
Daniel Dunbar authored
anything that ends with ++ or ++-FOO (e.g., c++, clang++, clang++-1.1) as being a "C++ compiler". This allows easy testing of the C++ compiler by 'ln -s clang clang++', or by 'cp clang clang++'. Based on patch by Roman Divacky. llvm-svn: 86697
-
Daniel Dunbar authored
llvm-svn: 86696
-
Daniel Dunbar authored
- Force NDEBUG on in any Release build. This drops the compile time to ~100s from ~600s, in Release mode. - This may just be a temporary workaround, I don't know the true nature of the gcc-4.2 compile time performance problem. llvm-svn: 86695
-
Duncan Sands authored
llvm-svn: 86694
-
Daniel Dunbar authored
- This is conceptually better since the only thing we want this option to do is preserve the internal module as constructed by IRgen, before running any passes. - This also fixes bugs in -disable-llvm-optzns handling with regards to debug info. llvm-svn: 86691
-
Daniel Dunbar authored
llvm-svn: 86690
-
Chris Lattner authored
llvm-svn: 86689
-
Daniel Dunbar authored
llvm-svn: 86686
-
Daniel Dunbar authored
llvm-svn: 86685
-
Douglas Gregor authored
llvm-svn: 86684
-
Duncan Sands authored
llvm-svn: 86683
-
Duncan Sands authored
llvm-svn: 86681
-
John McCall authored
although in this case we probably just run a risk of duplicating work; I can't think of how this could cause a bug. llvm-svn: 86680
-
John McCall authored
using directives, and fix a bug thereby exposed: since we're playing tricks with pointers, we need to make certain we're always using the same pointers for things. Also tweak an existing error message. llvm-svn: 86679
-
Duncan Sands authored
just throw them away. llvm-svn: 86678
-
Zhongxing Xu authored
llvm-svn: 86677
-
Victor Hernandez authored
Update computeArraySize() to use ComputeMultiple() to determine the array size associated with a malloc; also extend PerformHeapAllocSRoA() to check if the optimized malloc's arg had its highest bit set, so that it is safe for ComputeMultiple() to look through sext instructions while determining the optimized malloc's array size llvm-svn: 86676
-
Victor Hernandez authored
Add ComputeMultiple() analysis function that recursively determines if a Value V is a multiple of unsigned Base llvm-svn: 86675
-
John McCall authored
llvm-svn: 86674
-
Zhongxing Xu authored
This is reasonable because people know what they are doing when they intentionally dereference the pointer. So now we only emit warning when a pointer variable is use literally. llvm-svn: 86673
-
Chris Lattner authored
llvm-svn: 86672
-
Mike Stump authored
being generated. Add the most derived vtable pointer to the VTT. llvm-svn: 86671
-
Chris Lattner authored
of a computation. This fixes some infinite loops when dealing with TD that has no native types. llvm-svn: 86670
-
John McCall authored
This is a pretty minimal test case; I'll make a better one later. llvm-svn: 86669
-
Nick Lewycky authored
llvm-svn: 86668
-
Nick Lewycky authored
memory just like a store" with bug fixed (partial-overwrite.ll is the regression test). llvm-svn: 86667
-
Chris Lattner authored
llvm-svn: 86666
-
Anders Carlsson authored
When trying to assign a regular string literal to an Objective-C 'id' type or a pointer to an NSString, emit a code insertion hint that turns it into an Objective-C string. For example: @class NSString; @interface Test + (void)test:(NSString *)string; @end void g(NSString *a); void f() { NSString *a = "Foo"; g("Foo"); [Test test:"Foo"]; } will produce t.m:10:17: warning: incompatible pointer types initializing 'char [4]', expected 'NSString *' NSString *a = "Foo"; ^~~~~ @ t.m:11:5: warning: incompatible pointer types passing 'char [4]', expected 'NSString *' g("Foo"); ^~~~~ @ t.m:12:14: warning: incompatible pointer types sending 'char [4]', expected 'NSString *' [Test test:"Foo"]; ^~~~~ @ 3 diagnostics generated. llvm-svn: 86665
-
Anders Carlsson authored
llvm-svn: 86664
-
Zhongxing Xu authored
llvm-svn: 86663
-
Zhongxing Xu authored
llvm-svn: 86662
-
Anders Carlsson authored
llvm-svn: 86661
-
Zhongxing Xu authored
the argument is not an expression. llvm-svn: 86660
-
Anders Carlsson authored
If a function with a default argument is redefined and the new function also has a defualt argument then add a fixit hint that removes the default argument. Fixes PR5444. llvm-svn: 86659
-