Bill Wendling
9e900784f2
Remove testcase. It's problematic for the buildbots.
...
llvm-svn: 132589
2011-06-03 20:43:58 +00:00
Peter Collingbourne
6b5f17a586
Fix some order-of-initialisation warnings
...
llvm-svn: 132588
2011-06-03 20:41:09 +00:00
Peter Collingbourne
10bc01032c
Implement RegisterContextLinux_x86_64::{Read,Write}AllRegisterValues
...
llvm-svn: 132587
2011-06-03 20:41:02 +00:00
Peter Collingbourne
5a6fa540dc
Move SaveFrameZeroState and RestoreSaveFrameZero implementations to Thread base class
...
llvm-svn: 132586
2011-06-03 20:40:54 +00:00
Peter Collingbourne
70969ef102
Implement ProcessLinux::Do{Allocate,Deallocate}Memory using inferior mmap/munmap calls
...
llvm-svn: 132585
2011-06-03 20:40:44 +00:00
Peter Collingbourne
99f9aa02c2
Move inferior mmap/munmap call code into their own functions in utility lib
...
llvm-svn: 132584
2011-06-03 20:40:38 +00:00
Peter Collingbourne
1740be7cd9
Disable MCJIT on non-Darwin platforms
...
Currently the runtime dynamic linker lacks object file support for anything
other than Mach-O.
llvm-svn: 132583
2011-06-03 20:40:12 +00:00
Peter Collingbourne
b4aabeb8d7
Scan dynamic symbol table of ELF object files
...
llvm-svn: 132582
2011-06-03 20:39:58 +00:00
Jakob Stoklund Olesen
b8bf3c0f8b
Switch AllocationOrder to using RegisterClassInfo instead of a BitVector
...
of reserved registers.
Use RegisterClassInfo in RABasic as well. This slightly changes som
allocation orders because RegisterClassInfo puts CSR aliases last.
llvm-svn: 132581
2011-06-03 20:34:53 +00:00
Jakob Stoklund Olesen
3460ae88b2
Preserve the original ordering when a CSR has multiple aliases.
...
Previously, these aliases would be ordered alphabetically. (BH, BL)
Print out the computed allocation orders.
llvm-svn: 132580
2011-06-03 20:34:50 +00:00
Dan Gohman
4e7e7958d7
When merging MustAlias and PartialAlias, chose PartialAlias instead
...
of conservatively choosing MayAlias.
llvm-svn: 132579
2011-06-03 20:17:36 +00:00
Devang Patel
84bb33add9
Use IRBuilder, preserve line numbers.
...
llvm-svn: 132578
2011-06-03 19:46:19 +00:00
Howard Hinnant
3297ed7065
noexcept for <vector>. This also includes installing move_if_noexcept() into vector.
...
llvm-svn: 132577
2011-06-03 19:40:40 +00:00
Devang Patel
887e215e64
Emit debug info only if there is an insertion point. The debug info should not force an insertion point. Codegen may later on decide to not emit code for some reason, see extensive comment in CodeGenFunction::EmitStmt(), and debug info should not get in the way.
...
llvm-svn: 132576
2011-06-03 19:21:47 +00:00
Bill Wendling
b96ea46c7c
Accomodate front-ends which use private instead of internal here.
...
llvm-svn: 132575
2011-06-03 19:21:05 +00:00
Howard Hinnant
2d45a18c24
Bring noexcept for <string> inline with other containers.
...
llvm-svn: 132573
2011-06-03 18:40:47 +00:00
Alexis Hunt
1b02ed8c7c
Begin implementing a cache of special member lookups. Currently only
...
destructors are implemented but other special members are on the way,
which is where the real benefits of this will be visible.
llvm-svn: 132572
2011-06-03 18:36:49 +00:00
Galina Kistanova
b38fd263bd
Added registered targets for in-test dependency declarations.
...
llvm-svn: 132571
2011-06-03 18:36:30 +00:00
Matt Beaumont-Gay
aef8c72255
Don't warn about -Wno-foo where foo is an unknown warning option. Explicitly
...
passing -Wunknown-warning-option will re-enable warnings about -Wno-foo.
llvm-svn: 132570
2011-06-03 18:30:50 +00:00
Alexis Hunt
6fc542c49b
I've had too much to drink, apparently.
...
llvm-svn: 132566
2011-06-03 18:05:29 +00:00
Hans Wennborg
cf9bac4bc9
Warn about missing parentheses for conditional operator.
...
Warn in cases such as "x + someCondition ? 42 : 0;",
where the condition expression looks arithmetic, and has
a right-hand side that looks boolean.
This (partly) addresses http://llvm.org/bugs/show_bug.cgi?id=9969
llvm-svn: 132565
2011-06-03 18:00:36 +00:00
Alexis Hunt
ea31988f63
Implement a warning flag for the warning about default arguments making
...
special member functions.
llvm-svn: 132564
2011-06-03 17:55:52 +00:00
Hans Wennborg
0bb0df5839
Make -Wignored-qualifiers point to the first ignored qualifier.
...
In code such as "char* volatile const j()", Clang warns that "volatile
const" will be ignored. Make it point to the first ignored qualifier,
and simplify the code a bit.
llvm-svn: 132563
2011-06-03 17:37:26 +00:00
Howard Hinnant
4590010473
noexcept for <list>.
...
llvm-svn: 132562
2011-06-03 17:30:28 +00:00
Eric Christopher
354b2a25f3
Make the Uv constraint a memory operand. This doesn't solve the
...
addressing mode problem mentioned in r132559.
Backend part of rdar://9037836 and part of rdar://9119939
llvm-svn: 132561
2011-06-03 17:24:37 +00:00
Devang Patel
f1e2a7f0f0
Simplify.
...
llvm-svn: 132560
2011-06-03 17:23:47 +00:00
Eric Christopher
fbff0e4f26
Add a TODO about memory operands.
...
llvm-svn: 132559
2011-06-03 17:21:23 +00:00
Hans Wennborg
060b994a29
Test commit.
...
llvm-svn: 132558
2011-06-03 17:15:37 +00:00
Devang Patel
597a730cb8
Fix typedef's context.
...
llvm-svn: 132557
2011-06-03 17:05:26 +00:00
Devang Patel
1d40024322
A typedef's context is not the same as type's context. It is the context of typedef decl itself. Use extra parameter to communicate this to DIBuilder.
...
llvm-svn: 132556
2011-06-03 17:04:51 +00:00
Chad Rosier
6a11b64c5e
Revert name change from r132533. Lower case naming was intended per style guidelines.
...
llvm-svn: 132555
2011-06-03 17:02:19 +00:00
Caroline Tice
cbc0c247e1
Make a few minor changes/corrections to scripting
...
example on the web.
llvm-svn: 132554
2011-06-03 16:38:17 +00:00
Howard Hinnant
91a4750733
noexcept for <forward_list>.
...
llvm-svn: 132553
2011-06-03 16:20:53 +00:00
Roman Divacky
a4a59aebd9
Fix wrong usages of CTR/MCTR where CTR8/MCTR8 was meant.
...
- Check for MTCTR8 in addition to MTCTR when looking up a hazard.
- When lowering an indirect call use CTR8 when targeting 64bit.
- Introduce BCTR8 that uses CTR8 and use it on 64bit when expanding ISD::BRIND.
The last change fixes PR8487. With those changes, we are able to compile a
running "ls" and "sh" on FreeBSD/PowerPC64.
llvm-svn: 132552
2011-06-03 15:47:49 +00:00
Rafael Espindola
304902141e
We were looking at /usr/lib only if the distro had multilib. This is bogus:
...
we look in /usr/lib to find crt1.o, and that depends only on where libc
is installed.
This fixes the case of using a different gcc installation in a distro
without multilib.
llvm-svn: 132551
2011-06-03 15:39:42 +00:00
Rafael Espindola
d8f92c8dcc
Add support for centos.
...
llvm-svn: 132550
2011-06-03 15:23:24 +00:00
Howard Hinnant
801291139c
After sleeping on it I've decided that all special members that can be noexcept, should be declared so. The client has the traits to detect and branch on this information, and it is often an important optimization. Give deque() a noexcept. Add test for deque default constructor and deque destructor.
...
llvm-svn: 132549
2011-06-03 15:16:49 +00:00
Eric Christopher
e97fee6c86
80-column cleanup.
...
llvm-svn: 132548
2011-06-03 14:52:25 +00:00
Douglas Gregor
28de7a9a1e
Improve the instantiation of static data members in
...
Sema::RequireCompleteExprType() a bit more, setting the point of
instantiation if needed, and skipping explicit specializations entirely.
llvm-svn: 132547
2011-06-03 14:28:43 +00:00
Francois Pichet
b503705e0d
Revert r132544. Accidental commit. I got confused with the Tortoise SVN menu.
...
llvm-svn: 132546
2011-06-03 13:59:45 +00:00
Marshall Clow
f8da5b22af
Tests for bad_typeid and bad_cast
...
llvm-svn: 132545
2011-06-03 13:54:37 +00:00
Francois Pichet
d4de06861d
(no commit message)
...
llvm-svn: 132544
2011-06-03 13:51:55 +00:00
Eric Christopher
55d4989304
80-col cleanup.
...
llvm-svn: 132543
2011-06-03 13:28:31 +00:00
Eric Christopher
12d48f7cf1
Separate out these paths a bit by architecture. There are likely other
...
places this is a problem.
llvm-svn: 132542
2011-06-03 13:24:15 +00:00
Eric Christopher
43a517c7ac
Add multi-arch include support for Ubuntu 11.11 with gcc 4.6.0.
...
Patch by Tobias Hunger!
Fixes PR10008
llvm-svn: 132541
2011-06-03 13:06:30 +00:00
Benjamin Kramer
38bcb72ee0
Copy IsWarnIfUnused too when making a copy of a MacroInfo.
...
Found by valgrind.
llvm-svn: 132540
2011-06-03 10:33:36 +00:00
Francois Pichet
dd04c69a13
My testing shows that function stat has no problem with trailing separators. (tested on Windows and Darwin).
...
This fixes a bug on Windows:
clang c:\test.cpp
Here the call stat("c:") is not recognized as a directory (must be "c:\").
llvm-svn: 132539
2011-06-03 09:44:29 +00:00
Zhongxing Xu
3e4abe5470
singed int causes signed extension, which contradicts the intention to pick up
...
integers with high 32 bits being zero.
llvm-svn: 132538
2011-06-03 08:29:51 +00:00
Nick Lewycky
79286bf251
Rework the logic to not rely on undefined behaviour (1LL << 64). Also simplify.
...
llvm-svn: 132537
2011-06-03 08:25:39 +00:00
Francois Pichet
21cd5db7bd
Correctly revert r131347: function explicit specialization at class scope.
...
I'll try to implement this functionality again soon.
llvm-svn: 132536
2011-06-03 07:35:49 +00:00