Fariborz Jahanian
7be1ad814b
No longer need to keep base class offsets in the offset
...
table as it has its own place now.
llvm-svn: 77491
2009-07-29 18:50:06 +00:00
Anders Carlsson
307846fe67
Check in CGRecordLayoutBuilder which is a reimplementation of the record layout code. (Yay, no more packed structs unless absolutely necessary). We currently don't use the layouts being built but that will change when the new code is mature enough :)
...
llvm-svn: 76845
2009-07-23 03:17:50 +00:00
Anders Carlsson
7947433411
Add a new ASTRecordLayoutBuilder class. Not used yet.
...
llvm-svn: 76330
2009-07-18 20:20:21 +00:00
Anders Carlsson
15b73deeea
Revert r75641.
...
llvm-svn: 76327
2009-07-18 19:43:29 +00:00
Anders Carlsson
466fd0a16d
Rename RecordLayout.h to ASTRecordLayout.h
...
llvm-svn: 75641
2009-07-14 17:29:11 +00:00
Anders Carlsson
81df7b89de
Add a DecltypeType type.
...
llvm-svn: 74099
2009-06-24 19:06:50 +00:00
Anders Carlsson
946b86d91a
[class.local] p1 and p3. Also, add back the xcodeproj file.
...
llvm-svn: 74027
2009-06-24 00:10:43 +00:00
Ted Kremenek
d427c460ab
Remove old Xcode project. We can now automatically generate an Xcode project that compiles all of LLVM (not just Clang) using CMake.
...
llvm-svn: 73960
2009-06-23 17:14:59 +00:00
Chris Lattner
2811a257f1
remove extraneous diff.
...
llvm-svn: 73494
2009-06-16 16:22:49 +00:00
Chris Lattner
4ef49c1d6e
my refactoring of builtins changed target-specific builtins to only be
...
registered when PCH wasn't being used. We should always install (in BuiltinInfo)
information about target-specific builtins, but we shouldn't register any builtin
identifier infos. This fixes the build of apps that use PCH and target specific
builtins together.
llvm-svn: 73492
2009-06-16 16:18:48 +00:00
Chris Lattner
5abdec7978
move the various builtins stuff from libast to libbasic. This
...
fixes a layering violation in lib/Basic/Targets.cpp.
llvm-svn: 73318
2009-06-14 01:05:48 +00:00
Anders Carlsson
beca75273a
Use the correct indentation for DeclTemplate.cpp
...
llvm-svn: 72892
2009-06-04 21:48:59 +00:00
Anders Carlsson
75ac061fdb
Add DeclPrinter.cpp
...
llvm-svn: 72849
2009-06-04 05:38:41 +00:00
Anders Carlsson
8936009a91
Make sure to call FullExpr before parsing anything else.
...
llvm-svn: 72834
2009-06-04 02:18:15 +00:00
Anders Carlsson
68288cbc8b
Use the right indentation for CGCXXTemp.cpp
...
llvm-svn: 72832
2009-06-04 02:08:31 +00:00
Douglas Gregor
993cc401f1
Update Xcode project
...
llvm-svn: 72820
2009-06-04 00:04:42 +00:00
Anders Carlsson
82aea737a7
Move code generation of C++ temporaries into a new file.
...
llvm-svn: 72792
2009-06-03 18:40:21 +00:00
Anders Carlsson
f8e916de85
Update Xcode project
...
llvm-svn: 72639
2009-05-30 21:32:24 +00:00
Anders Carlsson
3562240952
Remove AstGuard.h from Xcode project.
...
llvm-svn: 72406
2009-05-26 00:57:47 +00:00
Anders Carlsson
2101e68398
Add SemaTemplateInstantiateStmt.cpp to Xcode project.
...
llvm-svn: 71884
2009-05-15 20:08:59 +00:00
Anders Carlsson
ee209a6501
Add SemaTemplateInstantiateExpr.cpp to Xcode project.
...
llvm-svn: 71820
2009-05-15 00:10:12 +00:00
Chris Lattner
46813bbfa2
Fix rdar://6880259 - invalid function name in block call (__NSConcreteGlobalBlock2)
...
by using the appropriate CGM interface instead of directly creating a global.
llvm-svn: 71617
2009-05-13 02:50:56 +00:00
Chris Lattner
258172e78d
add an abbreviation for common PARM_VAR_DECL. All but 9 of the
...
parm var decls in leopard cocoa.h end up using this abbreviation,
which shrinks the bitcode file by about 50K: 7217736->7167120.
Before:
Block ID #12 (DECLS_BLOCK):
Num Instances: 1
Total Size: 2.23595e+07b/2.79494e+06B/698736W
% of file: 38.7233
Num SubBlocks: 0
Num Abbrevs: 0
Num Records: 139387
% Abbrev Recs: 0
After:
Block ID #12 (DECLS_BLOCK):
Num Instances: 1
Total Size: 2.02405e+07b/2.53006e+06B/632516W
% of file: 35.301
Num SubBlocks: 0
Num Abbrevs: 1
Num Records: 139387
% Abbrev Recs: 19.2902
llvm-svn: 70199
2009-04-27 07:35:58 +00:00
Chris Lattner
7099dbc5bc
split decl writing out to its own PCHWriterDecl.cpp file.
...
llvm-svn: 70193
2009-04-27 06:16:06 +00:00
Chris Lattner
487412d4db
split decl reading out to its own PCHReaderDecl.cpp file.
...
llvm-svn: 70187
2009-04-27 05:27:42 +00:00
Chris Lattner
92ba5ffdfe
split stmt/expr deserialization out to PCHReaderStmt.cpp
...
llvm-svn: 70186
2009-04-27 05:14:47 +00:00
Chris Lattner
c3f4c7b1c5
pull the constraint string into the ConstraintInfo struct
...
instead of passing it around in addition to it.
llvm-svn: 70135
2009-04-26 17:19:08 +00:00
Chris Lattner
f0b64d73a8
split ObjC and C++ Statements out into their own headers.
...
llvm-svn: 70105
2009-04-26 01:32:48 +00:00
Chris Lattner
7ec71da215
implement PCH support for the rest of ExprObjC.h, including
...
the missing bits of ObjCMessageExpr.
llvm-svn: 70100
2009-04-26 00:44:05 +00:00
Chris Lattner
62975a788e
Fix rdar://6821047 - clang crashes on subscript of interface in 64-bit mode
...
Several changes here:
1. We change Type::isIncompleteType to realize that forward declared
interfaces are incomplete. This eliminate special case code for this
from the sizeof path, and starts us rejecting P[4] when P is a pointer
to an incomplete interface.
2. Explicitly reject P[4] when P points to an interface in non-fragile ABI
mode.
3. Switch the sizeof(interface) diagnostic back to an error instead of a
warning in non-fragile abi mode.
llvm-svn: 69943
2009-04-24 00:30:45 +00:00
Chris Lattner
f718110ae5
remove some gone files
...
llvm-svn: 69871
2009-04-23 05:29:03 +00:00
Steve Naroff
dd9aba001d
Update Xcode project with recently added files.
...
llvm-svn: 69753
2009-04-21 23:46:12 +00:00
Chris Lattner
2f5693f62d
Split preprocessor initialization logic out of clang-cc into
...
libfrontend. Patch by Alexei Svitkine!
llvm-svn: 69664
2009-04-21 05:40:52 +00:00
Chris Lattner
ddf6ca0355
the __gnuc_inline__ attribute is actually named __gnu_inline__,
...
PR4023
llvm-svn: 69618
2009-04-20 19:12:28 +00:00
Chris Lattner
1a1fdbd75d
move jump scope checking and related code out into its own file, SemaDecl.cpp is
...
already too large.
llvm-svn: 69505
2009-04-19 04:46:21 +00:00
Steve Naroff
059c6f6293
Update Xcode project with some PCH related headers.
...
llvm-svn: 69363
2009-04-17 18:02:59 +00:00
Chris Lattner
b666a27d24
split diagnostic group definitions out into their own file.
...
llvm-svn: 69274
2009-04-16 06:17:18 +00:00
Chris Lattner
485626c5f5
add a bunch of files.
...
llvm-svn: 69174
2009-04-15 16:43:37 +00:00
Chris Lattner
00364c38d7
add Diagnostic.td to proj
...
llvm-svn: 69141
2009-04-15 04:51:29 +00:00
Anders Carlsson
375d6beb6c
Add CGCXX.h with ctor/dtor type enumerations. No functionality change.
...
llvm-svn: 69137
2009-04-15 04:36:55 +00:00
Chris Lattner
faa1dbb4d0
add fixitrewriter to xcode proj
...
llvm-svn: 69092
2009-04-14 22:44:23 +00:00
Chris Lattner
225dd6c830
add some #includes for better compatibility with gcc 4.4,
...
thanks to Tobias Stadler for pointing this out.
llvm-svn: 68868
2009-04-11 18:40:46 +00:00
Chris Lattner
5f122a644a
add PCH stuff to project
...
llvm-svn: 68789
2009-04-10 17:09:28 +00:00
Chris Lattner
d2e61fbc64
add driver headers to xcode proj
...
llvm-svn: 68642
2009-04-08 20:57:57 +00:00
Anders Carlsson
25fad47ebe
Add clang-cc to the xcodeproj file.
...
llvm-svn: 68448
2009-04-06 17:11:27 +00:00
Chris Lattner
098d94a57d
add TemplateName.cpp/h to the xcode project, minor tidying.
...
llvm-svn: 68301
2009-04-02 06:07:12 +00:00
Steve Naroff
29cae66bde
Add ConvertUTF module from http://www.unicode.org/Public/PROGRAMS/CVTUTF .
...
#ifdef'd out the 5 conversion routines that we don't currently need.
Still need a bit more work in GetAddrOfConstantCFString(). Added a FIXME to indicate this.
Expect to remove the FIXME today...
llvm-svn: 68208
2009-04-01 15:50:34 +00:00
Chris Lattner
b7de9b7704
sort alphabetically
...
llvm-svn: 67951
2009-03-28 19:10:22 +00:00
Chris Lattner
8372efd39a
move file to proper place.
...
llvm-svn: 67933
2009-03-28 08:04:44 +00:00
Chris Lattner
1ad4eeb9c7
remove TranslationUnit.
...
llvm-svn: 67914
2009-03-28 04:31:31 +00:00
Anders Carlsson
17941120d6
Move Sema::SetMemberAccessSpecifier to SemaAccess.cpp
...
llvm-svn: 67820
2009-03-27 04:54:36 +00:00
Anders Carlsson
8ed6f3645b
Add SemaAccess.cpp
...
llvm-svn: 67819
2009-03-27 04:43:36 +00:00
Chris Lattner
5e31037164
sort items.
...
llvm-svn: 67733
2009-03-26 04:59:37 +00:00
Chris Lattner
cea1efaa61
add driver and clang-cc to project.
...
llvm-svn: 67732
2009-03-26 04:27:05 +00:00
Anders Carlsson
3cfc2e214a
Add the .td files and remove the .def files from the Xcode project.
...
llvm-svn: 67671
2009-03-25 02:54:43 +00:00
Anders Carlsson
6a07775423
Add SemaTypeInstantiateDecl.cpp
...
llvm-svn: 67559
2009-03-23 20:47:43 +00:00
Chris Lattner
113d8c9c1c
add NestedNameSpecifier.h/cpp to the xcode project file for browsing.
...
llvm-svn: 67285
2009-03-19 04:52:30 +00:00
Anders Carlsson
5bbe1d7ba7
More static_assert work. Check that the assert expr is valid and show an error if it's false. Create the declaration and add it to the current context.
...
llvm-svn: 66995
2009-03-14 00:25:26 +00:00
Anders Carlsson
85ba59eade
More ident fixes
...
llvm-svn: 66801
2009-03-12 17:55:17 +00:00
Anders Carlsson
2533d2b85b
Use the right indentation
...
llvm-svn: 66620
2009-03-11 01:37:02 +00:00
Chris Lattner
3cdd6493e9
update project for driver -> frontend rename.
...
llvm-svn: 66477
2009-03-09 21:57:09 +00:00
Chris Lattner
4f912e6f98
implement -Wsystem-headers, eliminating the wierd thing I added for testing.
...
llvm-svn: 66447
2009-03-09 20:44:22 +00:00
Chris Lattner
dbb05f15a4
Update DeclNodes.def to reflect the move of ObjCCategoryImpl
...
from being a NamedDecl to being and ObjCImplDecl. This fixes
some valgrind issues where ObjCCategoryImpl's were being cast
to NamedDecl and then stuck on name lookup datastructures.
llvm-svn: 66372
2009-03-08 07:26:58 +00:00
Chris Lattner
735012c466
update xcode proj
...
llvm-svn: 66109
2009-03-05 00:03:30 +00:00
Ted Kremenek
592ca2c4ab
Update Xcode project.
...
llvm-svn: 65870
2009-03-02 21:00:12 +00:00
Ted Kremenek
5e26e36283
Update Xcode project.
...
llvm-svn: 65863
2009-03-02 19:41:07 +00:00
Anders Carlsson
7a1b87dd7d
Set tab width to 2 on a number of CG related files
...
llvm-svn: 65534
2009-02-26 17:34:58 +00:00
Chris Lattner
deffa13399
move llvm backend specific #includes into Backend.cpp instead of Clang.cpp
...
llvm-svn: 64872
2009-02-18 01:23:44 +00:00
Chris Lattner
7b4b1d12b1
AnalysisConsumer.h is gone
...
llvm-svn: 64860
2009-02-18 00:20:09 +00:00
Chris Lattner
2eccbc1e5d
move attribute(packed) sema support out of SemaDecl into a new SemaAttr.cpp file.
...
llvm-svn: 64711
2009-02-17 00:57:29 +00:00
Chris Lattner
6c7ce109e0
enhance ExtVectorElementExpr to allow V->xxyy to work like (*V).xxyy
...
llvm-svn: 64667
2009-02-16 21:11:58 +00:00
Anders Carlsson
860189c19d
Add new files to Xcode project
...
llvm-svn: 64471
2009-02-13 18:09:59 +00:00
Chris Lattner
644d452de5
factor token concatenation avoidance logic out of
...
PrintPreprocessedOutput into its own file. No functionality change.
llvm-svn: 64418
2009-02-13 00:46:04 +00:00
Anders Carlsson
2437cbfa3b
Add support for generating block call expressions.
...
llvm-svn: 64346
2009-02-12 00:39:25 +00:00
Chris Lattner
4c72665bca
file gone.
...
llvm-svn: 63921
2009-02-06 05:18:06 +00:00
Chris Lattner
29321443f6
add DeclTemplate.h/cpp
...
llvm-svn: 63757
2009-02-04 19:21:34 +00:00
Chris Lattner
22b43cdc05
DiagnosticKinds.def is gone.
...
llvm-svn: 63415
2009-01-30 20:04:14 +00:00
Chris Lattner
4f7a5dafce
update the project file for headers moving
...
llvm-svn: 63275
2009-01-29 05:30:38 +00:00
Chris Lattner
5fdc227326
add some basic file headers
...
llvm-svn: 63188
2009-01-28 06:31:57 +00:00
Chris Lattner
e1d49c2572
add diagnostics files to xcode proj
...
llvm-svn: 63185
2009-01-28 06:02:52 +00:00
Chris Lattner
9240b3eccb
rename getSpelledCharacterAt to getSpellingOfSingleCharacterNumericConstant,
...
optimize it to use the LiteralData when possible.
llvm-svn: 63060
2009-01-26 22:36:52 +00:00
Chris Lattner
f66bf111a4
alphebetize
...
llvm-svn: 62698
2009-01-21 18:26:45 +00:00
Ted Kremenek
a005fd0d06
Update Xcode project.
...
llvm-svn: 62531
2009-01-19 21:31:51 +00:00
Anders Carlsson
65774916bd
Set tab width to 2 characters for all files in lib/Basic
...
llvm-svn: 62435
2009-01-18 00:18:31 +00:00
Chris Lattner
913e797257
add TypeTraits.h to the Xcode project
...
llvm-svn: 61787
2009-01-06 05:04:13 +00:00
Ted Kremenek
4e15d97ae4
Update Xcode project.
...
llvm-svn: 61230
2008-12-19 00:03:48 +00:00
Chris Lattner
db44f532c0
add ownership.h to xcode project
...
llvm-svn: 60926
2008-12-12 05:54:54 +00:00
Ted Kremenek
e1fc020e65
Update Xcode project.
...
llvm-svn: 60448
2008-12-03 00:38:43 +00:00
Ted Kremenek
d328da1b65
Update Xcode project.
...
llvm-svn: 60441
2008-12-02 20:16:22 +00:00
Anders Carlsson
2fedf0e8f7
Fix indentation width.
...
llvm-svn: 59880
2008-11-22 20:49:42 +00:00
Chris Lattner
060068a0ef
alphabeticalize.
...
llvm-svn: 59866
2008-11-22 08:22:53 +00:00
Chris Lattner
ab73bb1494
alphabeticalize.
...
llvm-svn: 59506
2008-11-18 07:46:14 +00:00
Chris Lattner
17c6fa4efe
sort files.
...
llvm-svn: 59492
2008-11-18 04:48:28 +00:00
Ted Kremenek
e2c23daa14
Update Xcode project.
...
llvm-svn: 59478
2008-11-18 00:57:33 +00:00
Chris Lattner
8ae89ca65e
add OperatorKinds.* to the project.
...
llvm-svn: 59437
2008-11-17 04:05:52 +00:00
Chris Lattner
e0a828ee41
add PTHLexer.h to project
...
llvm-svn: 59423
2008-11-16 20:18:49 +00:00
Chris Lattner
85d1908caf
move some APValue methods out of line.
...
llvm-svn: 59410
2008-11-16 07:35:53 +00:00
Ted Kremenek
33d2dae0d4
Update Xcode project.
...
llvm-svn: 59285
2008-11-14 01:16:15 +00:00
Ted Kremenek
9df654fa95
Update Xcode project.
...
llvm-svn: 59247
2008-11-13 16:36:43 +00:00
Chris Lattner
c51ded9e4a
sort files by name.
...
llvm-svn: 59112
2008-11-12 07:46:52 +00:00