Chandler Carruth
23df81aabe
Split this test up into two smaller, and more focused tests.
...
llvm-svn: 151999
2012-03-04 10:23:11 +00:00
Craig Topper
b35eacb0f0
Use uint16_t instead of unsigned to store registers in reg classes. Reduces static data size.
...
llvm-svn: 151998
2012-03-04 10:16:38 +00:00
Richard Smith
72eebee0cb
Add tests for [over.literal]. Fix a few bugs which were exposed by the tests.
...
llvm-svn: 151997
2012-03-04 09:41:16 +00:00
Craig Topper
420525ce3b
Use uint16_t to store registers in callee saved register tables to reduce size of static data.
...
llvm-svn: 151996
2012-03-04 03:33:22 +00:00
Craig Topper
6dedbae429
Use uint8_t instead of enums to store values in X86 disassembler table. Shaves 150k off the size of X86DisassemblerDecoder.o
...
llvm-svn: 151995
2012-03-04 02:16:41 +00:00
Chris Lattner
332673d39d
From his comment in PR12168, Eli seems confused about the alignment assumptions
...
we're making. We only ignore implicit casts. Add a testcase showing that
we get the right behavior with explicit casts.
llvm-svn: 151994
2012-03-04 00:56:24 +00:00
Chris Lattner
aaa18fad7d
add a testcase for PR12094 and fix a crash on pointer to incomplete type,
...
reported by Richard Smith.
llvm-svn: 151993
2012-03-04 00:52:12 +00:00
Richard Smith
522fa53703
Add a pile of tests for unrestricted unions, and advertise support for them.
...
llvm-svn: 151992
2012-03-03 23:51:05 +00:00
Richard Smith
2e312c8738
constexpr: Remove APValue/CCValue distinction. It is no longer useful given the
...
resolution of core issue 1454.
llvm-svn: 151991
2012-03-03 22:46:17 +00:00
Benjamin Kramer
15ceed9a9e
Remove unused variable.
...
llvm-svn: 151989
2012-03-03 21:52:22 +00:00
Benjamin Kramer
0764a3fb72
Perform the string table optimization for OperandMatchEntries too.
...
llvm-svn: 151986
2012-03-03 20:44:43 +00:00
Benjamin Kramer
5aeee5f854
Shrink the asm matcher tables.
...
- Shrink the opcode field to 16 bits.
- Shrink the AsmVariantID field to 8 bits.
- Store the mnemonic string in a string table, store a 16 bit index.
- Store a pascal-style length byte in the string instead of a null terminator,
so we can avoid calling strlen on every entry we visit during mnemonic search.
Shrinks X86AsmParser.o from 434k to 201k on x86_64 and eliminates relocs from the table.
llvm-svn: 151984
2012-03-03 19:13:26 +00:00
Benjamin Kramer
dbe7f3bf2e
StringToOffsetTable: Allow uniquing the first element, add an option to skip appending a terminating null.
...
llvm-svn: 151983
2012-03-03 19:13:20 +00:00
Enrico Granata
7a3b1d9757
Correct wrong values in the test case
...
llvm-svn: 151982
2012-03-03 18:29:21 +00:00
Benjamin Kramer
74f831b97f
Enable the small vector POD optimization for BitCodeAbbrevOp.
...
While at it bump the small vector size a bit, it's inside a heap-allocated class.
llvm-svn: 151980
2012-03-03 15:04:13 +00:00
Rafael Espindola
c7ecbfb07d
Correctly initialize LineSectionSymbol. Thanks to Duncan Sands for noticing it.
...
llvm-svn: 151979
2012-03-03 14:24:15 +00:00
Jean-Daniel Dupas
999892f0d0
Fix Typo in 'objc changes' anchor.
...
llvm-svn: 151978
2012-03-03 13:37:22 +00:00
Duncan Sands
d30d8c82cb
Honour --config-prefix also for lit.local.cfg.
...
llvm-svn: 151977
2012-03-03 13:30:56 +00:00
Francois Pichet
baea7e1117
Move the NonPOD struct out of the anonymous namespace instead of adding llvm:: everywhere to fix the HashingTest on MSVC .
...
chandlerc proposed this better solution on IRC.
llvm-svn: 151974
2012-03-03 09:39:54 +00:00
Duncan Sands
df39b7077d
Include cctype for isdigit. Patch by Stephen Hines.
...
llvm-svn: 151973
2012-03-03 09:36:58 +00:00
Francois Pichet
ce7e199dc6
Fixes the Hashing tests on MSVC by adding llvm:: prefix to hash_value function call.
...
llvm-svn: 151971
2012-03-03 07:56:49 +00:00
NAKAMURA Takumi
9aa1fbf314
unittests/ADT/HashingTest.cpp: Temporarily disable a new test introduced in r151891, to appease msvc.
...
llvm-svn: 151970
2012-03-03 07:00:58 +00:00
Jason Molenda
f7b4b56344
Remove "llvm" from list of things to ignore. This results in the
...
files in source/Plugins/Disassembler/llvm not being handled properly
by git.
llvm-svn: 151969
2012-03-03 06:43:59 +00:00
NAKAMURA Takumi
9b32e0f29f
llvm/docs/GarbageCollection.html: Prune utf8 BOM.
...
llvm-svn: 151968
2012-03-03 04:32:33 +00:00
Eli Friedman
5358a0ab5a
Avoid an unnecessary recursive loop between type canonicalization and NNS canonicalization which would (rarely) lead to memory corruption. While I'm here, simplify. Fixes PR12166. Not committing a testcase because it's impossible to reduce it.
...
llvm-svn: 151967
2012-03-03 04:09:56 +00:00
Enrico Granata
89fd064582
Currently TestDataFormatterPythonSynth is failing because of an issue with children capping. Splitting the test case in two so we better isolate the issue and also for better logical separation
...
llvm-svn: 151966
2012-03-03 03:13:03 +00:00
Jim Ingham
133e0fb3c6
First step to making an LanguageRuntime Exception breakpoint API.
...
<rdar://problem/10196277>
llvm-svn: 151965
2012-03-03 02:05:11 +00:00
Ted Kremenek
868dbda367
[analyzer] do not warn about returning stack-allocated memory when it comes from an ancestor stack frame.
...
llvm-svn: 151964
2012-03-03 01:22:03 +00:00
Richard Smith
906ccc167c
Factor bitfields of LangOptions out into a base class in order to make them
...
trivially-copyable. 50KiB reduction in clang binary size.
llvm-svn: 151963
2012-03-03 00:52:40 +00:00
Enrico Granata
385ad4e401
added a new formatter for CF(Mutable)BitVector
...
fixed a few potential NULL-pointer derefs in ValueObject
we have a way to provide docstrings for properties we add to the SWIG layer - a few of these properties have a docstring already, more will come in future commits
added a new bunch of properties to SBData to make it more natural and Python-like to access the data they contain
llvm-svn: 151962
2012-03-03 00:45:57 +00:00
Daniel Dunbar
ae77b3dfad
Frontend: Default to creating output files using temporary files + rename.
...
- This is a more reliable default, as it behaves better on failure and also
ensures that we create *new* files (instead of reusing existing inodes). This
is useful for other applications (like lldb) which want to cache inode's to
know when a file has been rewritten.
llvm-svn: 151961
2012-03-03 00:36:06 +00:00
Daniel Dunbar
b9c62c0773
Frontend: Don't automatically create missing directories when using temporary files with createOutputFile()
...
- This would otherwise happen as a side effect of llvm::sys::fs::unique_file creating parent directories.
llvm-svn: 151960
2012-03-03 00:36:02 +00:00
Daniel Dunbar
62a58f4928
hash_state: Don't use initialization target during initialization.
...
llvm-svn: 151959
2012-03-03 00:35:48 +00:00
Jakob Stoklund Olesen
a0bd36e3bc
Fix RA-dependent test.
...
llvm-svn: 151958
2012-03-03 00:26:30 +00:00
David Meyer
ae11a78be2
Fix comments for llvm-readobj, remove extraneous headers
...
llvm-svn: 151957
2012-03-02 23:43:51 +00:00
DeLesley Hutchins
e2a3f75a12
Thread safety analysis: expand set of expressions that can be used to denote locks.
...
llvm-svn: 151956
2012-03-02 23:36:05 +00:00
Richard Smith
bc638767f8
Reinstate r151879, r151880, reverted in r151922, along with a bugfix for
...
scalar emission of DeclRefExprs to const bools: emit scalar bools as i1,
not as i8.
In addition to the extra unit testing, this has successfully bootstrapped.
llvm-svn: 151955
2012-03-02 23:27:11 +00:00
Greg Clayton
44f6bddb17
<rdar://problem/10974749>
...
Added more cases to deal with new default compiler driver flags that were making builds fail.
llvm-svn: 151954
2012-03-02 23:25:41 +00:00
Sean Callanan
7725a4630d
Added a function to the disassembler that checks
...
(from the mnemonic) whether an instruction is a
branch. This function's result is exposed through
DoesBranch().
llvm-svn: 151953
2012-03-02 23:22:53 +00:00
Anna Zaks
b8b21e9b56
Unbreak the CMake builds following the CallGraph change.
...
llvm-svn: 151952
2012-03-02 23:18:45 +00:00
Nico Weber
9b9ebfc090
Add a test for the -Wstring-plus-int fixit note.
...
llvm-svn: 151951
2012-03-02 23:01:20 +00:00
Anna Zaks
fc5dfe9f7c
[analyzer] Rename clang::CallGraph into clang::idx::CallGraph + rename
...
the corresponding files to avoid confusion.
This is a preparation to adding an AST-based call graph to Analysis. The
existing call graph works with indexer entries. We might be able to
refactor it to use the AST based graph in the future.
(Minimal testing here as the only example that uses the API has been
completely broken, does not compile.)
llvm-svn: 151950
2012-03-02 22:54:36 +00:00
Aaron Ballman
611306eae6
Adding support for #pragma include_alias in MS compatibility mode. This implements PR 10705.
...
llvm-svn: 151949
2012-03-02 22:51:54 +00:00
Greg Clayton
ba3c8df4d9
Bumped Xcode project versions for lldb-121 and debugserver-172
...
llvm-svn: 151948
2012-03-02 22:36:23 +00:00
DeLesley Hutchins
71d6103295
Issue warning when late-parsed attributes have no declaration.
...
llvm-svn: 151947
2012-03-02 22:29:50 +00:00
Greg Clayton
653028fe36
<rdar://problem/10974749>
...
Hack our project file to deal with new default compiler driver flags that were making builds fail.
llvm-svn: 151946
2012-03-02 22:28:46 +00:00
DeLesley Hutchins
bd2ee13e78
Make late-parsed attributes follow the conventions of ordinary
...
GNU attributes to a better extent, by allowing them in more
places on a declator.
llvm-svn: 151945
2012-03-02 22:12:59 +00:00
DeLesley Hutchins
a2587ef26d
Thread safety analysis: handle CFG blocks which call functions marked as noreturn.
...
llvm-svn: 151944
2012-03-02 22:02:58 +00:00
Nico Weber
ccec40d9b7
Add -Wstring-plus-int, which warns on "str" + int and int + "str".
...
It doesn't warn if the integer is known at compile time and within
the bounds of the string.
Discussion: http://comments.gmane.org/gmane.comp.compilers.clang.scm/47203
llvm-svn: 151943
2012-03-02 22:01:22 +00:00
Fariborz Jahanian
7923ef41e1
objc: When issue diagnostic about deprecated method, also
...
issue the note if it is because message is sent to a forward class
declaration in delayed diagnostic. // rdar://10290322
llvm-svn: 151942
2012-03-02 21:50:02 +00:00