Anders Carlsson
c57acbc3af
Fix a tyop
...
llvm-svn: 62453
2009-01-18 02:54:30 +00:00
Anders Carlsson
d0e93db5ce
Make CCC_ECHO output to stderr
...
llvm-svn: 62452
2009-01-18 02:54:17 +00:00
Chris Lattner
428613f4fc
Avoid malloc thrashing on the std::vector for ConditionalStack. Because
...
there is one of these per header, this almost always gets alloc/free'd for
each #ifdef.
llvm-svn: 62451
2009-01-18 02:52:26 +00:00
Chris Lattner
18fc6ceb56
rename some variables, only set a tokens identifierinfo if non-null.
...
llvm-svn: 62450
2009-01-18 02:34:01 +00:00
Nate Begeman
da4df2928c
Eliminate tabs
...
llvm-svn: 62449
2009-01-18 02:27:45 +00:00
Anders Carlsson
178b767b9b
Fix a runtime error I saw
...
llvm-svn: 62448
2009-01-18 02:19:54 +00:00
Chris Lattner
9cdd877436
On i386 and x86-64, just do unaligned loads
...
instead of assembling from bytes. This speeds up -Eonly PTH reading
of cocoa.h by about 2ms, which is 4.2%.
llvm-svn: 62447
2009-01-18 02:19:16 +00:00
Anders Carlsson
e70cde134e
Handle the 'X' constraint. Fixes <rdar://problem/6504897>.
...
llvm-svn: 62446
2009-01-18 02:12:04 +00:00
Chris Lattner
137d6492a8
switch PTHLexer to use Read32 and friends instead of lots of inlined
...
copies. I verified that this causes no performance change in PTH.
llvm-svn: 62445
2009-01-18 02:10:31 +00:00
Anders Carlsson
a92271d067
CG support for inline asm constraints with symbolic names. Fixes PR3345
...
llvm-svn: 62444
2009-01-18 02:06:20 +00:00
Nate Begeman
7e5185b264
A couple more vector component access fixes.
...
llvm-svn: 62443
2009-01-18 02:01:21 +00:00
Chris Lattner
eb09754a9d
switch PTH lexer from using "const char*"s to "const unsigned char*"s
...
internally. This is just a cleanup that reduces the need to cast to
unsigned char before assembling a larger integer.
llvm-svn: 62442
2009-01-18 01:57:14 +00:00
Anders Carlsson
a79203be85
Add sema support for symbolic names in inline asm statements.
...
llvm-svn: 62441
2009-01-18 01:56:57 +00:00
Nate Begeman
bb70bf6dbb
Update support for vector component access on ExtVectors.
...
llvm-svn: 62440
2009-01-18 01:47:54 +00:00
Nate Begeman
95439108e8
Fit in 80 cols
...
llvm-svn: 62439
2009-01-18 01:08:03 +00:00
Nate Begeman
1e31b168fa
Add support for vectors to APValue. Vector constant evaluator and tests coming.
...
llvm-svn: 62438
2009-01-18 01:01:34 +00:00
Nate Begeman
c1bf0612dd
Remove outdated diagnostic. Tests are coming.
...
llvm-svn: 62437
2009-01-18 00:45:31 +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
Nate Begeman
a45707c06a
Allow targets to override IntMaxTWidth
...
llvm-svn: 62434
2009-01-17 23:56:13 +00:00
Anders Carlsson
19aa04d270
Change TargetInfo::validateInputConstraint to take begin/end name iterators instead of the number of outputs. No functionality change.
...
llvm-svn: 62433
2009-01-17 23:36:15 +00:00
Fariborz Jahanian
18789e1c21
Diagnose that property name cannot be a bitfield
...
llvm-svn: 62432
2009-01-17 23:21:10 +00:00
Fariborz Jahanian
091ae97786
Diagnose when method parameter is an object.
...
llvm-svn: 62431
2009-01-17 21:57:49 +00:00
Fariborz Jahanian
705c6d9cdd
Patch to re-implement ivar-list meta-data generation to fix
...
cases of unnamed ivar bitfields.
llvm-svn: 62429
2009-01-17 19:36:33 +00:00
Chris Lattner
71dc14b9f0
Rename SourceLocation::getFileID to getChunkID, because it returns
...
the chunk ID not the file ID. This exposes problems in
TextDiagnosticPrinter where it should have been using the canonical
file ID but wasn't. Fix these along the way.
llvm-svn: 62427
2009-01-17 08:45:21 +00:00
Chris Lattner
5509d533f6
simplify some lookups.
...
llvm-svn: 62426
2009-01-17 08:30:10 +00:00
Chris Lattner
757169b60f
Change the Lexer ctor used to lex _Pragma directives into a static factory
...
method. This lets us clean up the interface and make it more obvious that
this method is *really really* _Pragma specific.
Note that _Pragma handling uglifies the Lexer in the critical path. It would
be very interesting to consider making _Pragma remapping be a new special
lexer class of its own.
llvm-svn: 62425
2009-01-17 08:27:52 +00:00
Chris Lattner
ab1d4b8abd
simplify PTHManager::CreateLexer
...
llvm-svn: 62424
2009-01-17 08:06:50 +00:00
Chris Lattner
c809089b26
Change the Lexer ctor used in the non _Pragma case to take a FileID instead
...
of a SourceLocation. This should speed it up and definitely simplifies it.
llvm-svn: 62422
2009-01-17 08:03:42 +00:00
Chris Lattner
8ddb5cf0cf
in Preprocessor::AdvanceToTokenCharacter, don't actually bother
...
creating a whole lexer when we just want one static method.
llvm-svn: 62420
2009-01-17 07:57:25 +00:00
Chris Lattner
5965a28a4b
More simplifications to the lexer ctors.
...
llvm-svn: 62419
2009-01-17 07:56:59 +00:00
Chris Lattner
fcf6452eb4
make the verbose raw-lexer ctor fully explicit instead of having
...
embedded magic.
llvm-svn: 62417
2009-01-17 07:42:27 +00:00
Chris Lattner
1db27eefa1
use simplified Lexer ctor.
...
llvm-svn: 62416
2009-01-17 07:41:36 +00:00
Chris Lattner
08354fef13
add a simplified lexer ctor that sets up the lexer to raw-lex an
...
entire file.
llvm-svn: 62414
2009-01-17 07:35:14 +00:00
Chris Lattner
f76b92092e
refactor some common initialization code out of the two lexer ctors.
...
llvm-svn: 62411
2009-01-17 06:55:17 +00:00
Ted Kremenek
1da5987cb9
Update checker build.
...
llvm-svn: 62409
2009-01-17 06:41:35 +00:00
Chris Lattner
3793bba26f
suck the call to "getSpellingLoc" that all clients do into
...
the implementation of PTHManager::getSpelling.
llvm-svn: 62408
2009-01-17 06:29:33 +00:00
Chris Lattner
d32480d3db
this massive patch introduces a simple new abstraction: it makes
...
"FileID" a concept that is now enforced by the compiler's type checker
instead of yet-another-random-unsigned floating around.
This is an important distinction from the "FileID" currently tracked by
SourceLocation. *That* FileID may refer to the start of a file or to a
chunk within it. The new FileID *only* refers to the file (and its
#include stack and eventually #line data), it cannot refer to a chunk.
FileID is a completely opaque datatype to all clients, only SourceManager
is allowed to poke and prod it.
llvm-svn: 62407
2009-01-17 06:22:33 +00:00
Chris Lattner
800979259e
make "ContentCache::Buffer" mutable to avoid a const_cast.
...
llvm-svn: 62403
2009-01-17 03:54:16 +00:00
Chris Lattner
1ed28ce3fd
no need to check this: content cache is already 1-1 map with fileentries.
...
llvm-svn: 62402
2009-01-17 03:49:48 +00:00
Chris Lattner
1abd20901b
Instead of iterating over FileID's, have PTH generation iterate over the
...
content cache directly. Content cache has a 1-1 mapping with fileentries,
whereas multiple FileIDs can be the same FileEntry.
llvm-svn: 62401
2009-01-17 03:48:08 +00:00
Chris Lattner
3feddd91f7
remove an irrelevant idea
...
llvm-svn: 62400
2009-01-17 03:46:44 +00:00
Douglas Gregor
051d8fd809
Warn about typedefs of enums without any declarator name. Fixes rdar://problem/6503878
...
llvm-svn: 62397
2009-01-17 02:55:50 +00:00
Daniel Dunbar
5f40dec258
ccc: Support running piped jobs (-pipe now works).
...
llvm-svn: 62396
2009-01-17 02:02:35 +00:00
Ted Kremenek
1ab188f48a
Fix analyzer crash found when scanning Wine sources where the analyzer used old logic to determine the value of a switch 'case' label.
...
llvm-svn: 62395
2009-01-17 01:54:16 +00:00
Douglas Gregor
f23311d63b
PODify LookupResult, for a measly 1% speedup on Cocoa.h.
...
llvm-svn: 62391
2009-01-17 01:13:24 +00:00
Douglas Gregor
088ea012cd
Add -fnext-runtime to Objective-C properties testcase
...
llvm-svn: 62390
2009-01-17 00:53:59 +00:00
Daniel Dunbar
ee5a4a8cce
ccc: Don't be pedantically compatible with -Z options, these are the
...
result of an internal implementation detail of gcc.
llvm-svn: 62389
2009-01-17 00:53:19 +00:00
Daniel Dunbar
563dc04faa
Return success indicator from CmpDriver.
...
llvm-svn: 62388
2009-01-17 00:50:45 +00:00
Nuno Lopes
4d78cf0fa7
add support for usage of cast to union thing with static vars
...
llvm-svn: 62387
2009-01-17 00:48:48 +00:00
Douglas Gregor
dee1be8e95
Teach DeclContext how to find the primary declaration for any TagDecl
...
even when we are still defining the TagDecl. This is required so that
qualified name lookup of a class name within its definition works (see
the new bits in test/SemaCXX/qualified-id-lookup.cpp).
As part of this, move the nested redefinition checking code into
ActOnTag. This gives us diagnostics earlier (when we try to perform
the nested redefinition, rather than when we try to complete the 2nd
definition) and removes some code duplication.
llvm-svn: 62386
2009-01-17 00:42:38 +00:00