Ted Kremenek
e3e36f80f5
Unbreak CMake build.
...
llvm-svn: 140655
2011-09-27 23:29:59 +00:00
Johnny Chen
b2c7825515
Add a simple test TestModuleAndSection.py to exercise some module/section-related APIs.
...
In particular, it iterates through the executable module's SBSections, looking for the
'__TEXT' section and further iterates on its subsections (of SBSection type, too).
llvm-svn: 140654
2011-09-27 23:15:58 +00:00
Jakob Stoklund Olesen
f9b71a2e01
Implement TII::get/setExecutionDomain() for ARM.
...
llvm-svn: 140653
2011-09-27 22:57:21 +00:00
Jakob Stoklund Olesen
b48c994cc0
Promote the X86 Get/SetSSEDomain functions to TargetInstrInfo.
...
I am going to unify the SSEDomainFix and NEONMoveFix passes into a
single target independent pass. They are essentially doing the same
thing.
llvm-svn: 140652
2011-09-27 22:57:18 +00:00
Douglas Gregor
eaed8d57dd
Remove the egregious hack that made Objective-C++ ARC work with older
...
versions of libc++. Newer versions of libc++ know how to deal with ARC
properly. Fixes <rdar://problem/10062179>.
llvm-svn: 140651
2011-09-27 22:48:19 +00:00
Douglas Gregor
c0b07286cf
When 'bool' is not a built-in type but is defined as a macro, print
...
'bool' rather than '_Bool' within types, to make things a bit more
readable. Fixes <rdar://problem/10063263>.
llvm-svn: 140650
2011-09-27 22:38:19 +00:00
Fariborz Jahanian
ac8dbf0fc7
objcetive-c-arc: When overriding a method, its ns_consumed patameter
...
attribute must match its overriden method. Same also for
ns_returns_retained/not_retained on the result type.
This is one half of // rdar://10187884
llvm-svn: 140649
2011-09-27 22:35:36 +00:00
Anna Zaks
0070c6d4db
Fix a crash in MallocOverflowSecurityChecker. Patch by Lei Zhang.
...
llvm-svn: 140648
2011-09-27 22:25:01 +00:00
Jim Grosbach
c63af1b7b6
ARM Thumb2 asm parsing [SU]XT[BH] without rotate but with .w.
...
Add inst alias to handle these assembly forms. Add tests, too.
rdar://10178799
llvm-svn: 140647
2011-09-27 22:18:54 +00:00
Bill Wendling
354ff9e348
This is the start of the new SjLj EH preparation pass, which will replace the
...
current IR-level pass.
The old SjLj EH pass has some problems, especially with the new EH model. Most
significantly, it violates some of the new restrictions the new model has. For
instance, the 'dispatch' table wants to jump to the landing pad, but we cannot
allow that because only an invoke's unwind edge can jump to a landing pad. This
requires us to mangle the code something awful. In addition, we need to keep the
now dead landingpad instructions around instead of CSE'ing them because the
DWARF emitter uses that information (they are dead because no control flow edge
will execute them - the control flow edge from an invoke's unwind is superceded
by the edge coming from the dispatch).
Basically, this pass belongs not at the IR level where SSA is king, but at the
code-gen level, where we have more flexibility.
llvm-svn: 140646
2011-09-27 22:14:12 +00:00
David Chisnall
ddbd68fbd2
Check for GCC paths that have the target triple in them. This is required for a lot of cross-compile toolchains. Also add some slightly better support for -B.
...
llvm-svn: 140645
2011-09-27 22:03:18 +00:00
Akira Hatanaka
a5d18f2d7e
Embed patterns in definitions of MFC1 and MTC1 instead of defining them outside
...
of the instruction definitions using Pat<>.
llvm-svn: 140644
2011-09-27 22:01:01 +00:00
Cameron Zwarich
7a6e8f2c5d
Remove an invalid assert that is really just asserting when the scheduler emits
...
a suboptimal schedule.
llvm-svn: 140643
2011-09-27 21:59:16 +00:00
Eli Friedman
be4b363060
Get rid of useless helper Sema::CastCategory.
...
llvm-svn: 140642
2011-09-27 21:58:52 +00:00
NAKAMURA Takumi
6a2eb5c1c8
test/CMakeLists.txt: Depend on llvm-objdump. "make check" is expected to resolve test-dependent targets on CMake build.
...
llvm-svn: 140641
2011-09-27 21:54:50 +00:00
Johnny Chen
0f2ed0e5df
Make the assignment of TestBase.mydir more portable.
...
llvm-svn: 140640
2011-09-27 21:49:34 +00:00
Douglas Gregor
cb56faf091
If you download clang and delete the test directory, you can end up
...
with the copy line failing with an error, yet the make will complete
successfully. From Greg Clayton!
llvm-svn: 140639
2011-09-27 21:28:10 +00:00
Johnny Chen
469683e98d
SBWatchpointLocation.GetDescription() takes an additional description level arg.
...
Modify get_description() utility function in lldbutil.py to handle that.
llvm-svn: 140638
2011-09-27 21:27:19 +00:00
Benjamin Kramer
76399eb2ad
de-tmpify clang.
...
llvm-svn: 140637
2011-09-27 21:06:10 +00:00
Jim Grosbach
af136f71ec
Rename AddSelectionDAGCSEId() to addSelectionDAGCSEId().
...
Naming conventions consistency. No functional change.
llvm-svn: 140636
2011-09-27 20:59:33 +00:00
Anna Zaks
b9875a984c
[analyzer] Remove target triple from the malloc overflow test.
...
llvm-svn: 140635
2011-09-27 20:41:53 +00:00
Benjamin Kramer
547b6c5ecd
Stop emitting instructions with the name "tmp" they eat up memory and have to be uniqued, without any benefit.
...
If someone prefers %tmp42 to %42, run instnamer.
llvm-svn: 140634
2011-09-27 20:39:19 +00:00
Johnny Chen
9d954d8665
Add SBTarget::GetLastCreatedWatchpointLocation() API and export to the Python interface.
...
Also add rich comparison methods (__eq__ and __ne__) for SBWatchpointLocation.
Modify TestWatchpointLocationIter.py to exercise the new APIs.
Add fuzz testings for the recently added SBTarget APIs related to watchpoint manipulations.
llvm-svn: 140633
2011-09-27 20:29:45 +00:00
Johnny Chen
4e6a4fa899
Add fuzz testing for newly added SBWatchpointLocation API.
...
llvm-svn: 140632
2011-09-27 20:23:43 +00:00
Bill Wendling
b762df5840
Remove incorrect passage.
...
llvm-svn: 140631
2011-09-27 20:16:57 +00:00
Nick Kledzik
b69f3694df
<rdar://problem/10172492> No armv4t slice of libcompiler_rt-static.a
...
llvm-svn: 140630
2011-09-27 20:05:27 +00:00
Chad Rosier
bf415251df
These symbols appear to be visible by SearchForAddressOfSymbol and no longer
...
require special case handling.
rdar://10117377
llvm-svn: 140629
2011-09-27 20:01:41 +00:00
Jim Ingham
530a413c7b
Added an API to SymbolContext to hide the complexity of getting the
...
function name from a symbol context. Use that in CommandCompletions
to get the right name.
llvm-svn: 140628
2011-09-27 19:48:20 +00:00
Michael J. Spencer
2bc774ac1a
Add binary archive support to llvm-nm.
...
llvm-svn: 140627
2011-09-27 19:37:18 +00:00
Michael J. Spencer
d3b7b12618
Object: Add archive support.
...
llvm-svn: 140626
2011-09-27 19:36:55 +00:00
Duncan Sands
68ba81346e
Check that catch clauses have pointer type.
...
llvm-svn: 140625
2011-09-27 19:34:22 +00:00
Justin Holewinski
4f7054e56e
PTX: Fix case where printed alignment could be 0
...
llvm-svn: 140624
2011-09-27 19:25:49 +00:00
Eli Friedman
84d2d3a90e
Some changes to improve compatibility for MSVC-style C++ struct layout. Patch from r4start at gmail.com (with some minor modifications by me).
...
llvm-svn: 140623
2011-09-27 19:12:27 +00:00
Michael J. Spencer
554a012eb5
Unbreak tests.
...
llvm-svn: 140622
2011-09-27 19:06:37 +00:00
Douglas Gregor
244f7463cb
Document the incompatibility that stems from Clang properly implement
...
the rule that defines the implicit copy constructor/implicit copy
asssignment operator as deleted when a move constructor or move
assignment operator has been explicitly declared. This has hit a
number of people because Boost 1.47.0's shared_ptr fails to declare a
copy constructor.
llvm-svn: 140621
2011-09-27 18:58:27 +00:00
Eli Friedman
ed47406871
Move test, so it actually tests what it is supposed to (given that we don't have an AST verifier).
...
llvm-svn: 140620
2011-09-27 18:55:06 +00:00
Bill Wendling
d9f23c4f6b
Add FCA to the lexicon.
...
llvm-svn: 140619
2011-09-27 18:44:01 +00:00
Eli Friedman
f42db7ce48
Fix examples for r140478. PR11021.
...
llvm-svn: 140618
2011-09-27 18:33:47 +00:00
Justin Holewinski
e074593498
PTX: Use external symbols to keep track of params and locals. This also fixes
...
a couple of outstanding issues with frame objects occuring as instruction
operands.
llvm-svn: 140616
2011-09-27 18:12:55 +00:00
Jakob Stoklund Olesen
1c7597693c
Use existing function.
...
llvm-svn: 140615
2011-09-27 17:55:08 +00:00
Argyrios Kyrtzidis
2b0cf60df3
[libclang] Expose array size and element type, patch by Vinay Sajip!
...
llvm-svn: 140614
2011-09-27 17:44:34 +00:00
Peter Collingbourne
fec95198aa
Constant evaluation for pointer CXXScalarValueInitExpr
...
llvm-svn: 140613
2011-09-27 17:33:05 +00:00
Argyrios Kyrtzidis
18bcfd5595
Introduce a callback to PPCallbacks for lines skipped by the preprocessor.
...
Patch by Jason Haslam!
llvm-svn: 140612
2011-09-27 17:32:05 +00:00
Greg Clayton
e241bad92b
Enable the following CFLAGS in the Xcode project build:
...
-flimit-debug-info -feliminate-unused-debug-types -Wparentheses
This helps to trim down the debug information size a bit by omitting types
that aren't used.
llvm-svn: 140611
2011-09-27 17:26:03 +00:00
Argyrios Kyrtzidis
04a6e5f82e
Break SourceManager::translateFileLineCol into translateFile, no functionality change.
...
llvm-svn: 140610
2011-09-27 17:22:25 +00:00
Akira Hatanaka
e41b1d59f0
Fix function MipsRegisterInfo::getRegisterNumbering.
...
Return numbers of 64-bit registers.
llvm-svn: 140609
2011-09-27 17:15:27 +00:00
Douglas Gregor
4d68366b2f
When parsing a character literal, extract the characters from the
...
buffer as an 'unsigned char', so that integer promotion doesn't
sign-extend character values > 127 into oblivion. Fixes
<rdar://problem/10188919>.
llvm-svn: 140608
2011-09-27 17:00:18 +00:00
Akira Hatanaka
ff5d0965b0
Do not add the pass that restores $gp if target is Mips64.
...
llvm-svn: 140607
2011-09-27 16:58:43 +00:00
Duncan Sands
86de1a666d
Have the verifier check that all landingpad operands are constants.
...
llvm-svn: 140606
2011-09-27 16:43:19 +00:00
Douglas Gregor
486b74e596
Revert r139989 and r140031, which implemented the Objective-C type
...
system change in <rdar://problem/10109725> that allows conversion from
'self' in class methods to the root of the class's hierarchy. This
conversion rule is a hack that has non-trivial repurcussions
(particularly with overload resolution).
llvm-svn: 140605
2011-09-27 16:10:05 +00:00