summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* pass -fblocksChris Lattner2009-04-111-4/+2
| | | | llvm-svn: 68878
* Set proper location info on objc method arguments.Chris Lattner2009-04-111-5/+3
| | | | llvm-svn: 68877
* simplify code to use adjustParameterType, apply objc arg attributesChris Lattner2009-04-112-19/+19
| | | | | | to their arguments. llvm-svn: 68876
* fix blocks to reject objc interfaces returned by value. Also,Chris Lattner2009-04-112-11/+25
| | | | | | | a block without a prototype should still coerce a return in it to use the declared return type. llvm-svn: 68875
* fix testChris Lattner2009-04-111-1/+1
| | | | llvm-svn: 68874
* diagnose attempts to return objc interfaces by-value from C functions.Chris Lattner2009-04-114-3/+20
| | | | llvm-svn: 68873
* Improve the 'cannot pass objc interface by value' diagnostic:Chris Lattner2009-04-116-28/+28
| | | | | | | | | | | | | | | | | | 1) improve localizability by not passing english strings in. 2) improve location for arguments. 3) print the objc type being passed. Before: method-bad-param.m:15:1: error: Objective-C type cannot be passed by value -(void) my_method:(foo) my_param ^ after: method-bad-param.m:15:25: error: Objective-C interface type 'foo' cannot be passed by value -(void) my_method:(foo) my_param ^ llvm-svn: 68872
* change the interface to ActOnMethodDeclaration to pass down argumentChris Lattner2009-04-114-33/+46
| | | | | | | information in a little struct instead of individually. While we're at it, add per-argument loc info and attribute info. llvm-svn: 68871
* Minor refactoring of my last patch.Fariborz Jahanian2009-04-111-2/+2
| | | | llvm-svn: 68870
* sink abstract typedefs like Action::ExprTy from the Action classChris Lattner2009-04-116-50/+58
| | | | | | | | | | | down to the ActionBase class. This eliminates dependencies of (e.g.) DeclSpec.h on Action.h, meaning that action.h can now include these headers and use their types directly in the actions interfaces. This is a refactoring to support a future change, no functionality change. llvm-svn: 68869
* add some #includes for better compatibility with gcc 4.4,Chris Lattner2009-04-113-3/+4
| | | | | | thanks to Tobias Stadler for pointing this out. llvm-svn: 68868
* rename Parser::ParseObjCSelector -> Parser::ParseObjCSelectorPiece,Chris Lattner2009-04-112-8/+8
| | | | | | | since it only parses one identifier out of the selector, not the whole thing. llvm-svn: 68867
* simplify this code to not bother stripping to canonical types, andChris Lattner2009-04-111-15/+12
| | | | | | indent code properly llvm-svn: 68866
* Fixes a ir-gen crash for K&R style blocks.Fariborz Jahanian2009-04-112-5/+28
| | | | llvm-svn: 68865
* add radar numberChris Lattner2009-04-111-0/+1
| | | | llvm-svn: 68864
* Revert r68847. It breaks the build on non-Darwin targets, with this messageDan Gohman2009-04-117-178/+7
| | | | | | | from the assembler: Error: unknown pseudo-op: `.debug_inlined' llvm-svn: 68863
* Update analyzer build.Ted Kremenek2009-04-111-1/+1
| | | | llvm-svn: 68860
* analyzer: We cannot bind values to CodeTextRegions.Ted Kremenek2009-04-111-0/+2
| | | | llvm-svn: 68857
* Tweak wording, input argument isn't necessarily a "file", things likeDaniel Dunbar2009-04-111-1/+1
| | | | | | -lstdc++ are inputs too. llvm-svn: 68854
* Don't mangle variables that are at translation unit scope.Anders Carlsson2009-04-111-1/+2
| | | | llvm-svn: 68853
* Add support for generating reference initialization code.Anders Carlsson2009-04-112-2/+32
| | | | llvm-svn: 68852
* Add analyzer support for objc_atomicCompareAndSwap()Ted Kremenek2009-04-112-3/+14
| | | | llvm-svn: 68849
* Keep track of inlined functions and their locations. This information is ↵Devang Patel2009-04-117-7/+178
| | | | | | | | collected when nested llvm.dbg.func.start intrinsics are seen. (Right now, inliner removes nested llvm.dbg.func.start intrinisics during inlining.) Create debug_inlined dwarf section using these information. This info is used by gdb, at least on Darwin, to enable better experience debugging inlined functions. See DwarfWriter.cpp for more information on structure of debug_inlined section. llvm-svn: 68847
* Store unique IDs for identifiers in the PCH file. Use some bitmanglingDouglas Gregor2009-04-115-14/+145
| | | | | | | so that we only need to perform the lookup and identifier resolution once per identifier in the PCH file. llvm-svn: 68846
* Implement analyzer support for OSCompareAndSwap. This required pushing "tagged"Ted Kremenek2009-04-1114-70/+325
| | | | | | | | | ProgramPoints all the way through to GRCoreEngine. NSString.m now fails with RegionStoreManager because of the void** cast. Disabling use of region store for that test for now. llvm-svn: 68845
* Non-pointer objects are none gc'able regardles ofFariborz Jahanian2009-04-112-0/+26
| | | | | | the attribute set on them. llvm-svn: 68844
* move a target-specific test into its directory so it isn't run if youChris Lattner2009-04-101-0/+0
| | | | | | don't configure the ARM target in. llvm-svn: 68843
* Compare the predefines buffer in the PCH file with the predefinesDouglas Gregor2009-04-108-116/+219
| | | | | | | | | | | | | | | buffer generated for the current translation unit. If they are different, complain and then ignore the PCH file. This effectively checks for all compilation options that somehow would affect preprocessor state (-D, -U, -include, the dreaded -imacros, etc.). When we do accept the PCH file, throw away the contents of the predefines buffer rather than parsing them, since all of the results of that parsing are already stored in the PCH file. This eliminates the ugliness with the redefinition of __builtin_va_list, among other things. llvm-svn: 68838
* Fixup copy/dispose helpers for Objective-C. Radar 6756504Mike Stump2009-04-102-0/+16
| | | | llvm-svn: 68837
* Force driver triple.Daniel Dunbar2009-04-101-1/+1
| | | | llvm-svn: 68836
* Remove asserts that weren't really useful, and that would fire in case the ↵Anders Carlsson2009-04-101-5/+0
| | | | | | CleanupEntries vector needed to be reallocated. llvm-svn: 68835
* Fix another fallout from defining __weak unconditionally.Fariborz Jahanian2009-04-102-1/+16
| | | | llvm-svn: 68834
* Don't set both readnone and readonly.Daniel Dunbar2009-04-102-2/+6
| | | | llvm-svn: 68833
* do a dance with predefines, and finally enable reading of macros fromChris Lattner2009-04-106-12/+22
| | | | | | | PCH. This works now, except for limitations not being able to do things with identifiers. The basic example in the testcase works though. llvm-svn: 68832
* Fixed the test.Fariborz Jahanian2009-04-101-2/+1
| | | | llvm-svn: 68831
* move a bunch of code for initializing the predefines buffer out of ↵Chris Lattner2009-04-102-335/+318
| | | | | | | | | | Preprocessor.cpp into clang-cc.cpp. This makes it so clang-cc constructs the *entire* predefines buffer, not just half of it. A bonus of this is that we get to kill a copy of DefineBuiltinMacro. llvm-svn: 68830
* Add a test case for my last patch.Fariborz Jahanian2009-04-101-0/+2
| | | | llvm-svn: 68829
* add support for reading macros. This does all the reading (with a bunch ofChris Lattner2009-04-103-0/+120
| | | | | | | fixme's, e.g. for tokens with identifiers) but does not actually install them. Some details with the predefines buffer needs to be sorted out first. llvm-svn: 68828
* make a method publicChris Lattner2009-04-101-4/+4
| | | | llvm-svn: 68827
* Force triple for a number of tests that rely on __weak.Daniel Dunbar2009-04-106-6/+6
| | | | llvm-svn: 68826
* simplify code.Chris Lattner2009-04-101-6/+4
| | | | llvm-svn: 68825
* Encode the target triple in the PCH file, and check that target triple when ↵Douglas Gregor2009-04-105-15/+54
| | | | | | using the PCH file llvm-svn: 68824
* Add arbitrary "tags" to ProgramPoints. While this fattens up ProgramPoint evenTed Kremenek2009-04-101-18/+27
| | | | | | | more, it gives us a tremendous amount of flexibility for extending the analyzer to handle arbitrary program points. llvm-svn: 68823
* Honor MACOSX_DEPLOYMENT_TARGET environment variable.Daniel Dunbar2009-04-102-1/+15
| | | | llvm-svn: 68822
* Fixed spelling.Misha Brukman2009-04-101-1/+1
| | | | llvm-svn: 68821
* Implement serialization/deserialization of LangOptions in the PCHDouglas Gregor2009-04-106-30/+316
| | | | | | | | | file. When de-serializing LangOptions, we check that the currently-provided language options are consistent with the options used to compile the PCH file. If they are not, we emit a diagnostic and ignore the PCH file. llvm-svn: 68820
* Reject compiles for x86_64 target for MacOS versions whichFariborz Jahanian2009-04-101-0/+8
| | | | | | do not support it. llvm-svn: 68819
* Internal variables could mistakenly have "hidden" visibility whenDaniel Dunbar2009-04-102-10/+25
| | | | | | | | their emission was deferred. - <rdar://problem/6775234> variables with internal linkage should not be exposed with -fvisibility=hidden. llvm-svn: 68818
* Test case for -miphoneos-version-min, also part of Shantonu's patch!Daniel Dunbar2009-04-101-0/+23
| | | | llvm-svn: 68817
* Driver: Forward -miphoneos-version-min to clang.Daniel Dunbar2009-04-102-1/+13
| | | | llvm-svn: 68816
OpenPOWER on IntegriCloud