]>
granicus.if.org Git - clang/log
Daniel Dunbar [Wed, 29 Jul 2009 16:21:23 +0000 (16:21 +0000)]
scan-build: Don't try to index plist-html output directories
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77465
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 29 Jul 2009 16:15:53 +0000 (16:15 +0000)]
Remove an obsolete kludge based on the previous, completely broken handling of function templates
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77464
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 29 Jul 2009 16:13:25 +0000 (16:13 +0000)]
Test redefinition of class template partial specializations
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77463
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 29 Jul 2009 16:09:57 +0000 (16:09 +0000)]
Use the new statement/expression profiling code to unique dependent
template arguments, as in template specialization types. This permits
matching out-of-line definitions of members for class templates that
involve non-type template parameters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77462
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 29 Jul 2009 15:54:56 +0000 (15:54 +0000)]
Use the existing API for base offset. Use suitable llvm type
for offset ir-gen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77458
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 29 Jul 2009 15:32:08 +0000 (15:32 +0000)]
Make the Python TestRunner work for individual tests
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77456
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 29 Jul 2009 15:24:47 +0000 (15:24 +0000)]
Remove an ObjC-specific XFAIL (and tweak test).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77454
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 29 Jul 2009 15:09:39 +0000 (15:09 +0000)]
Fix <rdar://problem/
7100524 > regression: "error: incompatible operand types ('void *' and 'NSString *')".
Remove XFAIL from 'conditional-expr-4.m' test case (which would have caught this).
Also tweaked several aspects of the test to jive with the current type checking.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77453
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 29 Jul 2009 14:06:03 +0000 (14:06 +0000)]
Incorporate feedback from Chris (on r76979).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77452
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sebastian Redl [Wed, 29 Jul 2009 13:50:23 +0000 (13:50 +0000)]
Make functional-style casts emit correct messages, and fix a crash-on-invalid.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77451
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Wed, 29 Jul 2009 08:13:37 +0000 (08:13 +0000)]
add a fixme
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77447
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Wed, 29 Jul 2009 08:00:02 +0000 (08:00 +0000)]
delete an undefined method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77446
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 29 Jul 2009 02:57:25 +0000 (02:57 +0000)]
MultiTestRunner: Reenable --vg option.
- Simplified from before and using --error-exitcode so failures show up as
failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77424
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 29 Jul 2009 02:40:09 +0000 (02:40 +0000)]
Destroy the ASTConsumer prior to the Context, HTMLPrinter for example wants to
do a significant amount of work in its destructor, which may access the
context. (PR4642).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77423
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 29 Jul 2009 01:59:17 +0000 (01:59 +0000)]
BlockScopeInfo::hasPrototype was uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77421
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 29 Jul 2009 01:46:05 +0000 (01:46 +0000)]
CharLiteralParser::IsMultiChar was sometimes uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77420
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 29 Jul 2009 01:10:25 +0000 (01:10 +0000)]
Add missing '"'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77416
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 29 Jul 2009 00:44:13 +0000 (00:44 +0000)]
Code refactoring to define getCXXRecordDeclForPointerType
and use it in several places.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77411
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Wed, 29 Jul 2009 00:17:20 +0000 (00:17 +0000)]
Be sure to turn on -fblocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77406
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 23:57:15 +0000 (23:57 +0000)]
Some minor cleanups, thanks Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77402
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 23:47:15 +0000 (23:47 +0000)]
Some style fixes, thanks Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77400
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 23:11:12 +0000 (23:11 +0000)]
Add support for -Wmissing-noreturn.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77391
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 23:00:59 +0000 (23:00 +0000)]
Refactor the code that produces a TemplateSpecializationType, so that
canonicalization for dependent TemplateSpecializationTypes occurs
within ASTContext::getTemplateSpecializationType. Also, move template
argument canonicalization into ASTContext::getCanonicalTemplateArgument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77388
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 22:49:34 +0000 (22:49 +0000)]
remove extraneous braces
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77386
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 22:04:01 +0000 (22:04 +0000)]
Add noreturn support for blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77377
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 28 Jul 2009 22:00:58 +0000 (22:00 +0000)]
ir-gen derived-to-base conversion in implicit casts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77374
91177308 -0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 28 Jul 2009 21:22:35 +0000 (21:22 +0000)]
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77368
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 28 Jul 2009 21:03:34 +0000 (21:03 +0000)]
Remove the old RecordOrganizer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77365
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 28 Jul 2009 20:46:55 +0000 (20:46 +0000)]
Fix PR 4631. The compound initializers of unions were not being evaluated, which
could cause false positives if any the subexpressions had side-effects. These
initializers weren't evaluated because the StoreManager would need to handle
them, but that's an orthogonal problem of whether or not the StoreManager can
handle the binding.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77361
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 28 Jul 2009 19:34:30 +0000 (19:34 +0000)]
Add missing break statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77356
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 19:31:47 +0000 (19:31 +0000)]
Update comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77355
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 28 Jul 2009 19:24:31 +0000 (19:24 +0000)]
Fix regression in attribute 'nonnull' checking when a transition node
was created but not added to the destination NodeSet. This fixes PR 4630.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77353
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 28 Jul 2009 19:24:15 +0000 (19:24 +0000)]
Add a field for C++ specific data to ASTRecordLayout. Use it to store the non-virtual size and alignment + base offsets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77352
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 28 Jul 2009 18:54:57 +0000 (18:54 +0000)]
More cleanup of data member access and then some.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77351
91177308 -0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 28 Jul 2009 18:33:04 +0000 (18:33 +0000)]
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77349
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 18:25:28 +0000 (18:25 +0000)]
fix PR4633: cast to void should silence the 'unused expression' warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77344
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 18:25:06 +0000 (18:25 +0000)]
add some fixme's
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77343
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 18:22:50 +0000 (18:22 +0000)]
this test crashes, disable it harder.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77342
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 28 Jul 2009 18:09:28 +0000 (18:09 +0000)]
Some code cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77339
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 28 Jul 2009 17:56:36 +0000 (17:56 +0000)]
More CGRecordLayoutBuilder cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77335
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 28 Jul 2009 17:38:28 +0000 (17:38 +0000)]
More work toward data member access ir-gen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77332
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 28 Jul 2009 17:14:18 +0000 (17:14 +0000)]
Add two more tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77330
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 16:39:54 +0000 (16:39 +0000)]
Add a template test that requires canonical expression comparison
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77325
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 16:39:25 +0000 (16:39 +0000)]
Fix a typo in a comment
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77324
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 15:32:17 +0000 (15:32 +0000)]
Profiling the pointer of a canonical type is sufficient to uniquely identify the type
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77321
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 15:27:13 +0000 (15:27 +0000)]
Finish profile support for statements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77320
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 14:44:31 +0000 (14:44 +0000)]
Complete profile support for C++ and Objective-C expressions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77318
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 28 Jul 2009 06:52:18 +0000 (06:52 +0000)]
Bounds checking for address spaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77303
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 06:29:46 +0000 (06:29 +0000)]
CallExpr's SubExprs sometimes were allocated in the wrong place.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77302
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 28 Jul 2009 05:41:20 +0000 (05:41 +0000)]
Reimplement QualifierSet using a single word, as requested by dgregor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77299
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:17 +0000 (05:11 +0000)]
Implement ObjCMethodDecl::getCanonicalDecl().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77298
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:05 +0000 (05:11 +0000)]
-Add ObjCCategoryImplDecl::getCategoryClass() which returns the category interface decl.
-Correct ObjCMethodDecl::getNextRedeclaration(); A method in a ObjCCategoryImplDecl should point to
a method in the associated ObjCCategoryDecl, not the ObjCInterfaceDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77297
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:10:52 +0000 (05:10 +0000)]
Use ObjCImplDecl in place of ObjCCategoryImplDecl/ObjCImplementationDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77296
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 02:25:19 +0000 (02:25 +0000)]
Make longjmp a real builtin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77291
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 28 Jul 2009 01:00:58 +0000 (01:00 +0000)]
Allow functions to be marked "implicit return zero" and so mark main().
Codegen by initializing the return value with its LLVM type's null value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77288
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 00:33:38 +0000 (00:33 +0000)]
Add a Profile function for statements so that we can (eventually) determine
when statements and expressions are equivalent.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77284
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 28 Jul 2009 00:14:21 +0000 (00:14 +0000)]
Only generate preprocessed files during crashes using Clang, not GCC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77281
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 28 Jul 2009 00:07:15 +0000 (00:07 +0000)]
Fix helper function GetNextStmt() to look for the first statement that has a
valid SourceLocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77280
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 00:07:08 +0000 (00:07 +0000)]
Make sure to move the comment with the code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77279
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Mon, 27 Jul 2009 23:12:41 +0000 (23:12 +0000)]
Patch for objc's zero-const exception to not assume
that @catch(...) cathces all exceptions (c++ objects
are not cought by that).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77270
91177308 -0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 27 Jul 2009 22:29:56 +0000 (22:29 +0000)]
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77267
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 22:25:19 +0000 (22:25 +0000)]
Ensure we can work through typedefs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77265
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 27 Jul 2009 22:13:39 +0000 (22:13 +0000)]
(1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory"
object that it can use to forward PathDiagnostics for further processing. Along
with this feature, the PlistDiagnostics object logs which files are created by
the forwarding of the PathDiagnostics.
(2) Create a new PathDiagnosticClientFactory object for HTMLDiagnostics,
allowing other PathDiagnosticClients to forward PathDiagnostics through an
opaque interface.
(3) Create a "plist-html" diagnostics option in AnalysisConsumer to allow the
logging of HTML files created in a hybrid Plist+HTML diagnostic client.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77264
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 27 Jul 2009 22:10:34 +0000 (22:10 +0000)]
Add scan-build support for 'plist-html', a hybrid mode that supports the
creation of both HTML and plist files. Plist files are currently not generated
using the same layout algorithm as just specifying '-plist', so this is mainly
intended to help support automated runs of the analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77263
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 21:45:16 +0000 (21:45 +0000)]
Add knowledge about _longjmp being noreturn.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77254
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 21:33:40 +0000 (21:33 +0000)]
Add builtin knowledge about longjmp being noreturn. Add printing for
the noreturn attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77253
91177308 -0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 27 Jul 2009 21:00:51 +0000 (21:00 +0000)]
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77249
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Mon, 27 Jul 2009 20:57:45 +0000 (20:57 +0000)]
Some minor changes toward support of data
member access in the presense of non-virtual bases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77246
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Mon, 27 Jul 2009 19:53:49 +0000 (19:53 +0000)]
fix test (broken in r77224)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77241
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 19:14:18 +0000 (19:14 +0000)]
Add noreturn for exit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77237
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 27 Jul 2009 19:04:32 +0000 (19:04 +0000)]
Make ObjCImplDecl inherit from ObjCContainerDecl.
ObjCContainerDecl now is the root class for objc decls that contain methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77235
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 27 Jul 2009 19:01:13 +0000 (19:01 +0000)]
Tweak MultiTestRunner --path argument.
- Accept multiple values instead of embedding separator.
- Make sure this gets used when searching for 'clang' binary.
- Switch makefiles to using --path to stay in sync with cmake.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77234
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 27 Jul 2009 18:42:03 +0000 (18:42 +0000)]
Use DICompositeType->replaceAllUsesWith()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77228
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 27 Jul 2009 18:33:18 +0000 (18:33 +0000)]
Fix typo in error message
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77224
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 27 Jul 2009 18:31:49 +0000 (18:31 +0000)]
Prepare CMake regression testing for Daniel's upcoming fix to the test runner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77223
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 27 Jul 2009 17:43:39 +0000 (17:43 +0000)]
When instantiating a variable without an initializer, call
ActOnUninitializedDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77211
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 17:10:54 +0000 (17:10 +0000)]
Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty class will have a padding byte.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77205
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 15:31:55 +0000 (15:31 +0000)]
Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77190
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 14:55:54 +0000 (14:55 +0000)]
Fix a tail padding bug in the record layout builder code. The bug was found by an existing test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77189
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 05:54:15 +0000 (05:54 +0000)]
Enable the new constant struct builder by default. The old code is still in place but will be removed shortly. The new struct builder works on big endian systems.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77185
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Jul 2009 04:49:58 +0000 (04:49 +0000)]
add bugzilla #
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77183
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 02:56:37 +0000 (02:56 +0000)]
More work on the constant struct builder, fix a couple of thinkos and add support for inserting part of a bitfield in the previous byte.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77180
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 01:23:51 +0000 (01:23 +0000)]
More work on bitfield support in the new constant struct builder.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77177
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 00:44:23 +0000 (00:44 +0000)]
Fix PR4624.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77176
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sun, 26 Jul 2009 16:36:45 +0000 (16:36 +0000)]
fix segfault (because of erasing after the vector boundaries) when the cached token position is at the end
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77159
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sun, 26 Jul 2009 16:14:05 +0000 (16:14 +0000)]
add gentoo 2009.0 g++ header locations
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77158
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 09:28:40 +0000 (09:28 +0000)]
Switch to getName()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77151
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 08:32:30 +0000 (08:32 +0000)]
Switch to using llvm::Value::getName()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77147
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 02:21:04 +0000 (02:21 +0000)]
Update for API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77112
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 01:27:26 +0000 (01:27 +0000)]
Lookup targets by Triple instead of Module.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77108
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 25 Jul 2009 23:24:03 +0000 (23:24 +0000)]
Preserve qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77097
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ryan Flynn [Sat, 25 Jul 2009 22:29:44 +0000 (22:29 +0000)]
PR3575 - warn on declared variable or function attributes after a definition, which are currently ignored.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77095
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:16:03 +0000 (22:16 +0000)]
Refactor ObjCImplDecl::getInstanceMethod/getClassMethod into one
ObjCImplDecl::getMethod.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77094
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:51 +0000 (22:15 +0000)]
Refactor ObjCInterfaceDecl::lookupInstanceMethod/lookupClassMethod into one
ObjCInterfaceDecl::lookupMethod.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77093
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:38 +0000 (22:15 +0000)]
Refactor ObjCProtocolDecl::lookupInstanceMethod/lookupClassMethod into one
ObjCProtocolDecl::lookupMethod.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77092
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:22 +0000 (22:15 +0000)]
Refactor ObjCContainerDecl::getInstanceMethod/getClassMethod into one
ObjCContainerDecl::getMethod.
Avoids code duplication.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77091
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 25 Jul 2009 22:12:02 +0000 (22:12 +0000)]
Improve comments (Thanks Fariborz).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77090
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 25 Jul 2009 21:26:53 +0000 (21:26 +0000)]
Add noreturn as a type attribute, handle printing for them and handle
calls to noreturn function pointers when CFG building.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77089
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Sat, 25 Jul 2009 21:12:28 +0000 (21:12 +0000)]
ir-gen for non-virtual base class initialization
in constructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77087
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sebastian Redl [Sat, 25 Jul 2009 15:41:38 +0000 (15:41 +0000)]
Implement C++ semantics for C-style and functional-style casts. This regresses Clang extension conversions, like vectors, but allows conversions via constructors and conversion operators.
Add custom conversions to static_cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77076
91177308 -0d34-0410-b5e6-
96231b3b80d8