Douglas Gregor
2fdb6b5391
Move file validation in the ASTReader from "top of chain" validation
...
to "when loading a particular module" validation, since it was only
validating local information anyway. This shouldn't change anything.
llvm-svn: 138583
2011-08-25 20:58:51 +00:00
Douglas Gregor
d44252ec03
Factor the Module and ModuleManager classes out into separate headers
...
and .cpp files, since ASTReader.cpp was getting way too large. No
functionality change.
llvm-svn: 138582
2011-08-25 20:47:51 +00:00
John McCall
8d6fc9583d
Use stronger typing for the flags on AggValueSlot and require
...
creators to tell us whether something needs GC barriers.
No functionality change.
llvm-svn: 138581
2011-08-25 20:40:09 +00:00
Argyrios Kyrtzidis
7aecbc7661
Make Lexer::ComputePreamble accept a LangOptions parameter, otherwise it may be
...
out-of-sync how a file is compiled. Patch by Matthias Kleine!
llvm-svn: 138580
2011-08-25 20:39:19 +00:00
David Greene
6e913571a2
Constify Comparison
...
Make ConstantInt::uge() const so it may be used in const contexts.
llvm-svn: 138579
2011-08-25 20:18:22 +00:00
Chad Rosier
9c286cce2e
80-column and spacing.
...
llvm-svn: 138578
2011-08-25 20:17:19 +00:00
Johnny Chen
bbfa68b090
Make ThreadList::GetSelectedThread() select and return the 0th thread if there's no
...
currently selected thread. And update the call sites accordingly.
llvm-svn: 138577
2011-08-25 19:38:34 +00:00
Ted Kremenek
1b7f49c2d6
Teach -Wunreachable-code about dead code caused by macro expansions. This should suppress false positives resulting from 'assert' and friends.
...
llvm-svn: 138576
2011-08-25 19:28:55 +00:00
Owen Anderson
5e30972cff
Port over additional encoding tests to decoding tests, and fix an operand ordering bug this exposed.
...
llvm-svn: 138575
2011-08-25 18:30:18 +00:00
Douglas Gregor
69e9464340
Switch ASTReader::GetHeaderFileInfo() from a walk over the module
...
chain to a proper search.
llvm-svn: 138574
2011-08-25 18:14:34 +00:00
Benjamin Kramer
5a122f37fe
Intel family 6 model 44 is Gulftown/Westmere-EP and doesn't have AVX.
...
llvm-svn: 138573
2011-08-25 18:05:56 +00:00
Douglas Gregor
14f771695a
Switch the forward walk through the module chain over to a depth-first
...
search in ASTReader::ReadPreprocessedEntities().
llvm-svn: 138572
2011-08-25 18:03:05 +00:00
Fariborz Jahanian
35d0e66bee
Fixes a typo in my last patch.
...
llvm-svn: 138571
2011-08-25 18:01:27 +00:00
Andrew Trick
6446bf780a
ARM fix for missing implicit operands on ldmia_ret.
...
rdar://10005094: miscompile of 176.gcc
llvm-svn: 138568
2011-08-25 17:50:53 +00:00
Fariborz Jahanian
73d5f67f5a
objc -arse: Use DeclGroup for forward class declarations;
...
as in @class foo, bar. More cleanup to follow.
llvm-svn: 138567
2011-08-25 17:47:31 +00:00
Andrew Trick
f7ecc16c96
whitespace
...
llvm-svn: 138566
2011-08-25 17:40:54 +00:00
Johnny Chen
40e3592961
Initializes (uint64_t)buf variable, patch by Filipe Cabecinhas!
...
llvm-svn: 138565
2011-08-25 17:40:39 +00:00
Chad Rosier
160276dc93
[driver] Do not add -kext to the link command line when compiling with
...
-fapple-kext.
Fixes <rdar://problem/10013310>. Reverts <rdar://problem/7809940>.
llvm-svn: 138564
2011-08-25 17:33:03 +00:00
Johnny Chen
2c595273e0
Fix compilation error with DEBUG_STACK_FRAMES defined, patch by Filipe Cabecinhas!
...
With some slight modification.
llvm-svn: 138563
2011-08-25 17:27:02 +00:00
Jim Grosbach
1c171b121a
Explicitly disallow predication in Thumb1 assembly.
...
llvm-svn: 138562
2011-08-25 17:23:55 +00:00
Douglas Gregor
aa7cbfd259
Remove a bogus assertion from the AST reader, which assumed that
...
redeclarations of a particular entity would occur in source
order. Friend declarations that occur within class templates (or
member classes thereof) do not follow this, nor would modules. Big
thanks to Erik Verbruggen for reducing this problem from the Very
Large Qt preamble testcase he found.
llvm-svn: 138557
2011-08-25 15:28:26 +00:00
Douglas Gregor
c10edd6dd0
Use the module manager's search facility to look for methods with a
...
given selector, rather than walking the chain backwards. Teach its
visitor how to merge multiple result sets into a single result set,
combining the results of selector lookup in several different modules
into a single result set.
llvm-svn: 138556
2011-08-25 14:51:20 +00:00
Tobias Grosser
c532f12965
Fix crashes due to unaligned parameters
...
Due to the recent introduction of isl_id, parameters need now always to be
aligned. This was not yet taken care of in the code path of vectorization and
dependence analysis.
llvm-svn: 138555
2011-08-25 08:40:59 +00:00
Tobias Grosser
b406d227d2
ScheduleOptimizer: Fix another memleak
...
llvm-svn: 138554
2011-08-25 08:40:52 +00:00
Craig Topper
14380ff9a0
Add more missing TB encodings to VEX instructions to allow them to be disassembled. Fixes remainder of PR10678.
...
llvm-svn: 138553
2011-08-25 08:11:01 +00:00
Craig Topper
76e3e0b554
Give ATTR_VEX higher priority when generating the disassembler context table. Fixes disassembling of VEX instructions with 'pp'=00. Fixes subset of PR10678.
...
llvm-svn: 138552
2011-08-25 07:42:00 +00:00
Craig Topper
e1541838f9
Add TB encoding to VEROALL, VZEROUPPER, and VCVTPS2PD to allow them to be disassembled. Fixes PR10723.
...
llvm-svn: 138551
2011-08-25 06:57:46 +00:00
Bill Wendling
3fb137f7ef
LSR wants to split the landing pad's critical edge. Let it do it, but use the
...
proper function to do it.
llvm-svn: 138550
2011-08-25 05:55:40 +00:00
Greg Clayton
447ff1bfdc
Make the CFBundleShortVersionString and CFBundleVersion automatically track
...
the Apple Generic Version number from the Xcode project.
llvm-svn: 138549
2011-08-25 04:13:59 +00:00
Benjamin Kramer
88e6d5945f
Initialize member variable.
...
llvm-svn: 138548
2011-08-25 04:04:18 +00:00
Bruno Cardoso Lopes
296256fb32
Add support for 256-bit versions of VSHUFPD and VSHUFPS.
...
llvm-svn: 138546
2011-08-25 02:58:26 +00:00
Bruno Cardoso Lopes
54366cc332
Add memory version of SHUFPD to mask decoding!
...
llvm-svn: 138545
2011-08-25 02:58:21 +00:00
Jason Molenda
289673c052
Change old "settings set frame-prompt" and thread-prompt
...
to frame-format and thread-format.
llvm-svn: 138544
2011-08-25 02:46:44 +00:00
Jason Molenda
b1ad65c548
Emit an error message if we're unable to write a value to a register.
...
(in addition to the previous error message if the value could not be
parsed as a numbe). These both generate reasonable errors now -
reg write rip 0x500000000000000000000a
reg write rip 0x5jjjj
llvm-svn: 138543
2011-08-25 01:59:13 +00:00
Eli Friedman
535c9fab8b
Remove empty directories.
...
llvm-svn: 138542
2011-08-25 01:33:48 +00:00
Bill Wendling
ff2091737e
Update tests to the newest EH syntax.
...
llvm-svn: 138541
2011-08-25 01:30:18 +00:00
Evan Cheng
9dad430486
Hide -global-merge option.
...
llvm-svn: 138540
2011-08-25 01:22:49 +00:00
Bill Wendling
b37db20e40
Add feature test for the new exception handling stuff.
...
llvm-svn: 138539
2011-08-25 01:19:13 +00:00
Jordy Rose
15484daafe
[analyzer] Move the leak bugs from CFRefCount to RetainReleaseChecker, with a level of indirection to handle GC vs. non-GC.
...
llvm-svn: 138538
2011-08-25 01:14:38 +00:00
Bill Wendling
07efd6f1e0
When inserting new instructions, use getFirstInsertionPt instead of
...
getFirstNonPHI so that it will skip over the landingpad instructions as well.
llvm-svn: 138537
2011-08-25 01:08:34 +00:00
Evan Cheng
f066b2fe99
Add a command line option to disable global merge pass.
...
llvm-svn: 138536
2011-08-25 01:00:36 +00:00
Anna Zaks
5be8a4d104
[analyzer] MacOSKeychainAPIChecker: Cleanup AllocationState structure.
...
llvm-svn: 138535
2011-08-25 00:59:06 +00:00
Evan Cheng
3ca20e64ac
Remove a out-of-place comment.
...
llvm-svn: 138534
2011-08-25 00:54:42 +00:00
Francois Pichet
f2fb411d4a
Add support for Microsoft __ptr32 keyword.
...
Patch by Chris Cudmore!
llvm-svn: 138533
2011-08-25 00:36:46 +00:00
Jordy Rose
4ba0ba42e2
[analyzer] Move the easy bug types from CFRefCount to RetainReleaseChecker.
...
(These bug types may have just been leaked before...!)
llvm-svn: 138532
2011-08-25 00:34:03 +00:00
Anna Zaks
85913db489
[analyzer] MacOSKeychainAPIChecker: Add the custom BugReport visitor(which highlights the allocation site) to all the relevant reports within the checker.
...
llvm-svn: 138531
2011-08-25 00:32:42 +00:00
Jason Molenda
bfb36ff9ea
Include lldb/commands as a valid logging type in the
...
'log list' output.
Remove an extraneous \n from one of the lldb/commands
log line.
Add an lldb/commands log indicating whether the command
was successful or not.
llvm-svn: 138530
2011-08-25 00:20:04 +00:00
Jordy Rose
8b289a2cbd
[analyzer] Move the RetainSummaryManager from CFRefCount to RetainReleaseChecker.
...
Because Checkers live for an entire translation unit, this persists summary caches across multiple code bodies and avoids repeated initialization (but probably at the cost of memory). This removes the last references from RetainReleaseChecker to CFRefCount.
llvm-svn: 138529
2011-08-25 00:10:37 +00:00
Fariborz Jahanian
5c4b2ca699
blocks - capturing logic of byref block variable's expression
...
statement initializer makes safe assumption when a substatement
is encounterred (with a fix me).
llvm-svn: 138528
2011-08-25 00:06:26 +00:00
Greg Clayton
e1be996baa
Fix so we don't create C++ classes for all objective C classes when we have a
...
objective C++ source file.
llvm-svn: 138527
2011-08-24 23:50:00 +00:00