Nick Lewycky
faa9c3b035
Teach globalopt to not nuke all stores to globals. Keep them around of they
...
might be deliberate "one time" leaks, so that leak checkers can find them.
This is a reapply of r160602 with the fix that this time I'm committing the
code I thought I was committing last time; the I->eraseFromParent() goes
*after* the break out of the loop.
llvm-svn: 160664
2012-07-24 07:21:08 +00:00
Francois Pichet
1c7207c886
Change the way KEYNOMS is defined to be more comprehensible.
...
llvm-svn: 160663
2012-07-24 06:17:24 +00:00
Craig Topper
17300940ae
Change llvm_unreachable in SplitVectorOperand to report_fatal_error. Keeps release builds from crashing if code uses an intrinsic with an illegal type.
...
llvm-svn: 160661
2012-07-24 04:11:21 +00:00
NAKAMURA Takumi
3c72621570
clang/test/CodeGenCXX/debug-info-globalinit.cpp: Fix for -Asserts.
...
llvm-svn: 160660
2012-07-24 02:03:39 +00:00
Nick Lewycky
085970736f
Emit debug info for dynamic initializers. Permit __attribute__((nodebug)) on
...
variables that have static storage duration, it removes debug info on the
emitted initializer function but not all debug info about this variable.
llvm-svn: 160659
2012-07-24 01:40:49 +00:00
Nick Lewycky
cfb4517cc0
Fix whitespace, whoops missed a spot!
...
llvm-svn: 160658
2012-07-24 01:37:23 +00:00
Nick Lewycky
b9e4a3a756
Fix whitespace, tabs to spaces. No functionality change.
...
llvm-svn: 160657
2012-07-24 01:31:55 +00:00
Jim Ingham
c8ff80d6b0
Sanity check the result of Symbol::GetPrologueByteSize - make sure it is not greater than the size of the Symbol returning it.
...
llvm-svn: 160656
2012-07-24 01:31:19 +00:00
Jim Ingham
1bfe4f6417
Use a more efficient API to tell if a process belongs to springboard or not.
...
llvm-svn: 160655
2012-07-24 01:23:53 +00:00
Akira Hatanaka
45da9e2653
Fix function MipsCodeEmitter::emitExternalSymbolAddress to pass test
...
ExecutionEngine/test-fp.ll.
Patch by Petar Jovanovic.
llvm-svn: 160653
2012-07-24 00:08:26 +00:00
Rafael Espindola
a647296b7c
move X86_32ABIInfo::computeInfo out of line.
...
llvm-svn: 160652
2012-07-24 00:01:07 +00:00
Akira Hatanaka
26e9ecb7a3
Add basic ability to setup call frame, and make procedure calls.
...
Hello world will compile and execute with this patch.
Patch by Reed Kotler.
llvm-svn: 160651
2012-07-23 23:45:54 +00:00
Dmitri Gribenko
47f622d414
Comment parser unit tests: split a huge test case
...
llvm-svn: 160649
2012-07-23 23:37:11 +00:00
Rafael Espindola
75419dc151
Make classifyReturnType and classifyArgumentType private.
...
llvm-svn: 160648
2012-07-23 23:30:29 +00:00
Dmitri Gribenko
89630bce27
Comment parser unit tests: reduce code duplication
...
llvm-svn: 160647
2012-07-23 23:09:32 +00:00
Richard Smith
45fbfc7f11
Do not warn about a function decl / direct init ambiguity if the function has a trailing return type.
...
llvm-svn: 160646
2012-07-23 21:41:30 +00:00
Eric Christopher
2ce6541f3b
Fix a "Bad fd number" error on some platforms due to a less portable
...
redirection in the system call.
Patch by Andy Gibbs.
llvm-svn: 160644
2012-07-23 20:54:17 +00:00
Nuno Lopes
eb9d2755b2
make ConstantRange::zeroExtend() optimal
...
llvm-svn: 160643
2012-07-23 20:33:29 +00:00
Richard Trieu
1feac1cef9
Add operator== to APSInt. This will compare the signed bit before doing
...
the comparison. This prevents large unsigned integers from being equal to
signed negative integers of the same bit width.
llvm-svn: 160642
2012-07-23 20:24:23 +00:00
Richard Trieu
c320c745cc
Change APInt to APSInt in one instance. Also change a call to operator==() to
...
APSInt::isSameValue() when comparing different sized APSInt's.
llvm-svn: 160641
2012-07-23 20:21:35 +00:00
Dmitri Gribenko
e3942ef9a4
add AST unittests to CMake build system
...
llvm-svn: 160640
2012-07-23 20:11:34 +00:00
Eric Christopher
118c1961ae
Fix this for gdb 7.4.
...
Patch by Andy Gibbs.
llvm-svn: 160639
2012-07-23 19:41:58 +00:00
Dmitri Gribenko
378458d597
libclang comments AST: clang_ParamCommandComment_getParamName: don't assert
...
when a \param command does not have a parameter name, just return an empty
string instead.
llvm-svn: 160638
2012-07-23 19:41:49 +00:00
Dan Gohman
f64ff8ed3a
An objc_retain can serve as a may-use for a different pointer.
...
rdar://11931823.
llvm-svn: 160637
2012-07-23 19:27:31 +00:00
Akira Hatanaka
adec58c091
Add comment for relocations MO_HIGHER and HIGHEST in MipsBaseInfo.h.
...
llvm-svn: 160636
2012-07-23 19:19:20 +00:00
Michael Han
3be3b44cdb
Refactor handler functions for thread safety attributes.
...
Make handler functions for thread safety attributes consistent with other attributes handler functions
by removing the bool parameter from some of the thread safety attributes handler functions and extracting
common checks out of different handler functions.
llvm-svn: 160635
2012-07-23 18:48:41 +00:00
Dmitri Gribenko
4b7f5fe572
Comment Sema: refactor handling of 'ParmVarDecl's and save them in Sema members.
...
llvm-svn: 160634
2012-07-23 17:40:30 +00:00
Dmitri Gribenko
d73e4ce992
Comment AST: add InlineContentComment::RenderKind to specify a default
...
rendering mode for clients that don't want to interpret Doxygen commands.
Also add a libclang API to query this information.
llvm-svn: 160633
2012-07-23 16:43:01 +00:00
Micah Villmow
9eedce1e7c
Test revert of test changes.
...
llvm-svn: 160632
2012-07-23 16:42:45 +00:00
Micah Villmow
780c24f19c
Test commit.
...
llvm-svn: 160631
2012-07-23 16:37:24 +00:00
Alexander Potapenko
51e6488b31
Intercept CFAllocator for each thread in the program.
...
Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81
llvm-svn: 160630
2012-07-23 14:07:58 +00:00
Nadav Rotem
1088811c33
Suppress a warning.
...
llvm-svn: 160629
2012-07-23 13:44:15 +00:00
Timur Iskhodzhanov
49b52efab1
Follow-up: fix the quotes
...
llvm-svn: 160626
2012-07-23 09:43:03 +00:00
Timur Iskhodzhanov
284f98414b
Replace wrong CHECK array mangling expectations with correct CHECK-NOT+FIXME (PR13182)
...
llvm-svn: 160625
2012-07-23 09:32:54 +00:00
Alexey Samsonov
37d5134f38
[ASan] minor fixes to silence cmake build warnings
...
llvm-svn: 160624
2012-07-23 09:11:58 +00:00
Nadav Rotem
7f829e4d32
Doxygenify the comments of ISD nodes.
...
llvm-svn: 160623
2012-07-23 09:04:00 +00:00
Sylvestre Ledru
830885ca64
Fix a typo (the the => the)
...
llvm-svn: 160622
2012-07-23 08:59:39 +00:00
Sylvestre Ledru
35521e2310
Fix a typo (the the => the)
...
llvm-svn: 160621
2012-07-23 08:51:15 +00:00
Alexander Potapenko
7f3e84c9fd
For wild addresses in the shadow or shadow gap areas print an error message instead of crashing on a check.
...
Add AddressSanitizer.MemsetWildAddressTest that makes sure a proper error message is printed.
llvm-svn: 160620
2012-07-23 08:22:27 +00:00
Nadav Rotem
9056076cab
Fixed DAGCombine optimizations which generate select_cc for targets
...
that do not support it (X86 does not lower select_cc).
PR: 13428
Together with Michael Kuperstein <michael.m.kuperstein@intel.com>
llvm-svn: 160619
2012-07-23 07:59:50 +00:00
Richard Smith
87f5dc53b2
Add diagnostics for comma at end of enum and for extra semicolon at namespace
...
scope to -Wc++11-extensions. Move extra semicolon after member function
definition diagnostic out of -pedantic, since C++ allows a single semicolon
there. Keep it in -Wextra-semi, though, since it's still questionable.
llvm-svn: 160618
2012-07-23 05:45:25 +00:00
Craig Topper
2694c05e86
Tidy up. Fix indentation and remove trailing whitespace.
...
llvm-svn: 160617
2012-07-23 05:38:07 +00:00
Craig Topper
b49546a3b3
Change llvm_unreachable in SplitVectorResult to report_fatal_error. Keeps release builds from crashing if code uses an intrinsic with an illegal type. For instance 256-bit AVX intrinsics without having AVX enabled.
...
llvm-svn: 160616
2012-07-23 04:34:49 +00:00
Douglas Gregor
6fa6942dda
When we have an Objective-C object with non-trivial lifetime in a
...
structor class under ARC, that struct/class does not have a trivial
move constructor or move assignment operator. Fixes the rest of
<rdar://problem/11738725>.
llvm-svn: 160615
2012-07-23 04:23:39 +00:00
Richard Smith
505df2340a
PR12917: Remove incorrect assumption that lambda mangling information cannot
...
change once it's been assigned. It can change in two ways:
1) In a template instantiation, the context declaration should be the
instantiated declaration, not the declaration in the template.
2) If a lambda appears in the pattern of a variadic pack expansion, the
mangling number will depend on the pack length.
llvm-svn: 160614
2012-07-22 23:45:10 +00:00
Francois Pichet
f5b24e0136
Allow the parser to recover gracefully if a typename is used to introduce a decltype type.
...
In Microsoft mode, we emit a warning instead of an error.
This fixes a couple of errors when parsing the MSVC 11 RC headers with clang.
llvm-svn: 160613
2012-07-22 15:10:57 +00:00
Francois Pichet
0e2b84312f
char16_t and char32_t are defined via typedef in MSVC 11 RC. So introduce a way to disable keywords under Microsoft mode.
...
llvm-svn: 160612
2012-07-22 11:32:41 +00:00
Chandler Carruth
c8acd7c96b
Move the initialization of the bounds checking pass. The pass itself
...
moved earlier. This fixes some layering issues.
llvm-svn: 160611
2012-07-22 05:19:32 +00:00
NAKAMURA Takumi
b5b4d8b06b
ExecutionEngine/TargetSelect.cpp: Override default triple as LLVM_HOSTTRIPLE.
...
In current implementation, JIT should run only on host.
llvm-svn: 160610
2012-07-22 03:04:57 +00:00
NAKAMURA Takumi
43652ae0de
autoconf: Re-introduce LLVM_HOSTTRIPLE since r143500, as rework of PR11060.
...
cmake: Add LLVM_HOSTTRIPLE. For now, it is same as TARGET_TRIPLE.
llvm-svn: 160609
2012-07-22 03:04:52 +00:00