Fariborz Jahanian
d016ec204c
Add BlocksAttr assert on __block specific
...
routines.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121007 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-06 17:28:17 +00:00
Anders Carlsson
57d2d236d2
Replace calls to AppendBytes with calls to AppendPadding when the bytes appended are padding.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120922 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-04 23:53:18 +00:00
Fariborz Jahanian
67aba81690
Such function decls,as objc's objc_msgSend, builtins in
...
a specific language. We are adding such language info. by
extensing Builtins.def and via a language flag added
to LIBBUILTIN/BUILTIN and check for that when deciding
a name is builtin or not. Implements //rdar://8689273.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120429 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-30 17:35:24 +00:00
John McCall
85fedbf188
Update Xcode project: remove Action.cpp, add DumpXML.cpp.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120420 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-30 10:11:54 +00:00
Anders Carlsson
ee7cde2f39
Move CGCXXABI functions to CGCXXABI.cpp
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120250 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-28 17:49:03 +00:00
Anders Carlsson
7491f1037b
Update Xcode project.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120138 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-25 01:52:05 +00:00
Anders Carlsson
30a9bb8674
Update Xcode project.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119953 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-21 23:25:35 +00:00
Anders Carlsson
cfe240ae96
Update Xcode project.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119945 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-21 18:33:34 +00:00
Anders Carlsson
a4c2475961
Forward the -fno-elide-constructor argument to clang -cc1. Fixes PR8652.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119915 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-21 00:09:52 +00:00
Fariborz Jahanian
da4ad9fa26
Fixes a rewrite bug, rewriting nested property usage
...
inside blocks. Fixes //rdar: //8608293.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118425 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-08 18:37:50 +00:00
Anders Carlsson
fe5ef73149
More CharUnits conversion.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117874 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-31 21:39:24 +00:00
Argyrios Kyrtzidis
387fb7104e
test/SemaCXX/crash-8124080.cpp -> test/SemaCXX/crashes.cpp
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117758 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-30 01:06:21 +00:00
Fariborz Jahanian
0483dceea0
Qualified 'id' should implement all of static class type's
...
protocols, including those added to class, super class
and categories; otherewise issue a warning. This fixes
pr8453.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117678 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-29 18:26:21 +00:00
Anders Carlsson
bd2bfae2a6
If a virtual member function has the 'final' attribute, we can devirtualize calls to it.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117444 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-27 13:28:46 +00:00
Fariborz Jahanian
e946fc833d
Patch for mis-compile of statement expressions with
...
non-trivial copy constructors. // rdar: //8540501.
A test will be added to llvm nightly tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117324 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-25 23:27:26 +00:00
Anders Carlsson
cd1af3d68b
Move the "used but marked unused" warning behind a special warning flag for now.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117219 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-24 04:28:00 +00:00
Fariborz Jahanian
8a97005f97
After discussion with Doug and John, I am reverting
...
the patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117159 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-22 22:05:03 +00:00
Anders Carlsson
cae5095c11
Add a __has_attribute macro that works much like __has_feature and __has_builtin.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116906 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-20 02:31:43 +00:00
Fariborz Jahanian
1a4c937779
patch fixes class names missing from method names in debug information for
...
synthesized property. // rdar: //8498026
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116717 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-18 17:51:06 +00:00
Argyrios Kyrtzidis
a7d2f19e6b
Xcode keeps modifying the project file and I don't know how to ignore the change; just commit it.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116673 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-16 17:18:07 +00:00
Fariborz Jahanian
90fe4bc75d
When dealing with an assignment with LHS being a property reference
...
expression, the entire assignment tree is rewritten into a property
setter messaging. This includes rewriting the RHS.
Do not attempt to rewrite RHS again. Never rewrite a rewritten text!
Fixes //rdar: //8527018.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116104 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-08 21:12:22 +00:00
Fariborz Jahanian
92c8568856
Fix a block rewriter bug where copy/dispose entries in
...
block descriptor for outer block was missing even though
the block was importing objects into its inner blocks.
//rdar://84995992
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115644 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 18:05:06 +00:00
Anders Carlsson
42499be29b
Use ParseObjCSelectorPiece for parsing getter and setter names in @property declarations. Fixes PR8169.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115411 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-02 17:45:21 +00:00
Fariborz Jahanian
db148be93c
Copying result of object property reference expression
...
into a temporary is elidable as well.
(Finishes up radar 8291337).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114845 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-27 17:30:38 +00:00
Anders Carlsson
37bf9d2bb7
Allow the use of C++0x deleted functions as an extension in C++98.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114762 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-24 21:25:25 +00:00
Anders Carlsson
4938f2385f
Static local variables don't result in global constructors being emitted.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112933 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-03 01:11:38 +00:00
Anders Carlsson
5d1d7ae120
Get rid of the "functions declared 'noreturn' should have a 'void' result type" warning.
...
The rationale behind this is that it is normal for callback functions to have a non-void return type
and it should still be possible to mark them noreturn. (JavaScriptCore is a good example of this).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112918 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-03 00:25:02 +00:00
Fariborz Jahanian
5832ae6e50
xcode project file update.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112677 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-31 23:49:56 +00:00
Fariborz Jahanian
f164b6eb26
clang.xcodeproj updated.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112209 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-26 19:58:26 +00:00
Fariborz Jahanian
0ad8b4652a
Add DelayedDiagnostic.h to xcode project file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112119 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-26 00:17:38 +00:00
Fariborz Jahanian
930c133129
More update of clang.xcodeproj for recent changes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112117 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-26 00:13:24 +00:00
Fariborz Jahanian
5ad502f36f
Update clang.xcodeproj for recent refactorings.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112116 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-26 00:06:40 +00:00
Sebastian Redl
6ab7cd853e
Rename the ASTReader header files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111474 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-18 23:57:17 +00:00
Sebastian Redl
904c9c8389
Rename the ASTReader implementation files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111473 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-18 23:57:11 +00:00
Sebastian Redl
7faa2ec03a
Rename PCHWriter.h to ASTWriter.h
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111466 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-18 23:56:37 +00:00
Sebastian Redl
4ee2ad0434
Rename the ASTWriter implementation files
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111465 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-18 23:56:31 +00:00
Sebastian Redl
857281328f
Reintroduce the serialization library, with fixed dependencies.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111279 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-17 20:43:28 +00:00
Douglas Gregor
4557e473c9
Revert Sebastian's build-breaking patch.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111265 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-17 18:31:01 +00:00
Sebastian Redl
93c972945b
Create a new Serialization module that contains all the PCH code, and will contain all the module code in the future. Update the Makefiles, CMake projects and the Xcode project. I hope I did everything right for Xcode. No functionality change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111258 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-17 17:55:49 +00:00
Douglas Gregor
1ee17504a8
Update Xcode project
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110953 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-12 20:53:33 +00:00
Fariborz Jahanian
03e80e446e
Nasty rewriter bug which turns out to have an easy fix in
...
rewriting a c-style cast expression in statement printer.
Fixes radar 8143056.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107289 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-30 16:31:08 +00:00
Anders Carlsson
7a40262117
Update Xcode project.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105633 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-08 20:02:04 +00:00
Anders Carlsson
9d5e5d4c38
Update .xcodeproj file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104721 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-26 19:40:41 +00:00
Anders Carlsson
c49a7d505d
Remove RecordLayoutBuilder.h
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104687 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-26 05:49:19 +00:00
Anders Carlsson
88465d3e99
Add an InheritancePath parameter to the ImplicitCastExpr constructor.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102218 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-23 22:18:37 +00:00
Anders Carlsson
046861b912
Turn CXXMethodVector into a generic class template.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102208 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-23 19:53:03 +00:00
Anders Carlsson
461e326e74
Rename CGVtable files to CGVTables.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100778 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-08 16:30:25 +00:00
Daniel Dunbar
270e203b50
IRGen: Hide CGRecordLayoutBuilder class, because I can.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99967 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-31 00:11:27 +00:00
Anders Carlsson
1d8422b456
Update xcode project
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99860 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-30 02:08:20 +00:00
Fariborz Jahanian
a2a87c975a
Add some missing files to xcode project
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99318 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-23 20:23:06 +00:00