Argyrios Kyrtzidis
bbbeea11a8
For Diagnostic::Reset() also reset the state related to #pragma diagnostic. Fixes rdar://9170766.
...
llvm-svn: 128346
2011-03-26 18:58:17 +00:00
Chris Lattner
85222c6b2f
fix the second part of rdar://8366474 - clang fails to parse ObjC selectors with '::', when :: isn't the first part of the selector.
...
llvm-svn: 128344
2011-03-26 18:11:38 +00:00
Fariborz Jahanian
c85269fb40
Make diagnostic clearer.
...
llvm-svn: 128343
2011-03-26 17:07:06 +00:00
Benjamin Kramer
355ce07425
Turn SelectionDAGBuilder::GetRegistersForValue into a local function.
...
It couldn't be used outside of the file because SDISelAsmOperandInfo
is local to SelectionDAGBuilder.cpp. Making it a static function avoids
a weird linkage dance.
llvm-svn: 128342
2011-03-26 16:35:10 +00:00
Oscar Fuentes
4f444d7c44
Removed workaround for unspecified build problem on MinGW.
...
Tested that MinGW/MSYS builds fine without that.
llvm-svn: 128341
2011-03-26 16:11:33 +00:00
Anders Carlsson
642b03413f
Don't add a symbolic region for 'this' if the member function is static.
...
llvm-svn: 128340
2011-03-26 14:30:44 +00:00
Benjamin Kramer
8aef596dec
Make helpers static.
...
llvm-svn: 128339
2011-03-26 12:38:21 +00:00
Benjamin Kramer
8d2227373d
Make helper static.
...
llvm-svn: 128338
2011-03-26 12:38:19 +00:00
Douglas Gregor
7bf3fbe6e1
Add a __has_feature check for the 'availability' attribute
...
llvm-svn: 128337
2011-03-26 12:16:15 +00:00
Douglas Gregor
1baf38f5a6
On Mac OS X, the presence of an 'availability' attribute for that
...
platform implies default visibility. To achieve these, refactor our
lookup of explicit visibility so that we search for both an explicit
VisibilityAttr and an appropriate AvailabilityAttr, favoring the
VisibilityAttr if it is present.
llvm-svn: 128336
2011-03-26 12:10:19 +00:00
David Chisnall
34d00052cb
Reformatted doc comments so that they are now difficult to edit in any editor that doesn't have explicit doxygen support, as per LLVM style guidelines.
...
llvm-svn: 128335
2011-03-26 11:48:37 +00:00
Douglas Gregor
7735c53664
Test attribute merging for the availability attribute.
...
llvm-svn: 128334
2011-03-26 10:47:34 +00:00
Bill Wendling
b5139920d6
Simplification noticed by Frits.
...
llvm-svn: 128333
2011-03-26 09:32:07 +00:00
Bill Wendling
19f33b9393
Rework the logic that determines if a store completely overlaps an ealier store.
...
There are two ways that a later store can comletely overlap a previous store:
1. They both start at the same offset, but the earlier store's size is <= the
later's size, or
2. The earlier store's offset is > the later's offset, but it's offset + size
doesn't extend past the later's offset + size.
llvm-svn: 128332
2011-03-26 08:02:59 +00:00
Cameron Zwarich
d4174ee43e
Fix a typo and add a test.
...
llvm-svn: 128331
2011-03-26 04:58:50 +00:00
Douglas Gregor
fa38bd3dfe
Extend Clang's TableGen emitter for attributes to support bool arguments.
...
llvm-svn: 128330
2011-03-26 03:40:01 +00:00
Douglas Gregor
7ab142b55a
Extend the new 'availability' attribute with support for an
...
'unavailable' argument, which specifies that the declaration to which
the attribute appertains is unavailable on that platform.
llvm-svn: 128329
2011-03-26 03:35:55 +00:00
John McCall
7853595253
Allow GC qualifiers to be added/removed by conversions from/to void*
...
without a warning.
llvm-svn: 128328
2011-03-26 02:56:45 +00:00
Jakob Stoklund Olesen
9a624fa993
Collect and coalesce DBG_VALUE instructions before emitting the function.
...
Correctly terminate the range of register DBG_VALUEs when the register is
clobbered or when the basic block ends.
The code is now ready to deal with variables that are sometimes in a register
and sometimes on the stack. We just need to teach emitDebugLoc to say 'stack
slot'.
llvm-svn: 128327
2011-03-26 02:19:36 +00:00
John McCall
4d55f5a893
Don't warn about the 'extern' in 'extern "C"' on a tag decl. This is
...
usually useless, but not always.
llvm-svn: 128326
2011-03-26 02:09:52 +00:00
John McCall
405988b97c
Fix the recovery from missing semis on @property declarations to not consume
...
the following '@'. Conceivably, we could skip tokens until something that
can validly start an @interface declaration here, but it's not clear that
it matters.
llvm-svn: 128325
2011-03-26 01:53:26 +00:00
John McCall
9db0212bc7
Properly move attributes to the decl spec when applying them there.
...
llvm-svn: 128324
2011-03-26 01:39:56 +00:00
Ken Dyck
58863dc46a
Convert the OffsetInLayoutClass parameter of
...
FinalOverriders::ComputeBaseOffsets() to CharUnits. No change in
functionality intended.
llvm-svn: 128323
2011-03-26 01:36:26 +00:00
Johnny Chen
923f3dac01
Fixed the t2PLD and friends disassembly and add two test cases.
...
llvm-svn: 128322
2011-03-26 01:32:48 +00:00
Ken Dyck
785cbdb6da
Convert FinalOverriders::Offset to CharUnits. No change in functionality
...
intended.
llvm-svn: 128321
2011-03-26 01:29:16 +00:00
Eric Christopher
d553096688
Fix the bfi handling for or (and a mask) (and b mask). We need the two
...
masks to match inversely for the code as is to work. For the example given
we actually want:
bfi r0, r2, #1 , #1
not #0 , however, given the way the pattern is written it's not possible
at the moment.
Fixes rdar://9177502
llvm-svn: 128320
2011-03-26 01:21:03 +00:00
Bill Wendling
db40b5c899
PR9561: A store with a negative offset (via GEP) could erroniously say that it
...
completely overlaps a previous store, thus mistakenly deleting that store. Check
for this condition.
llvm-svn: 128319
2011-03-26 01:20:37 +00:00
Ken Dyck
808457cfd6
Convert offset in MethodBaseOffsetPairTy to CharUnits. No change in
...
functionality intended.
llvm-svn: 128318
2011-03-26 01:18:17 +00:00
Ken Dyck
70b47e08dc
Convert the offsets in SubobjectOffsetMapTy to CharUnits. No change in
...
functionality intended.
llvm-svn: 128317
2011-03-26 01:09:13 +00:00
Sean Callanan
6d5b79fc2a
Updated LLDB to use a recent LLVM/Clang, pulling
...
in stability fixes for the ARM and Thumb disassemblers.
llvm-svn: 128316
2011-03-26 00:52:28 +00:00
Ken Dyck
ce81203d9b
Convert several local variables to CharUnits. No change in functionality
...
intended.
llvm-svn: 128315
2011-03-26 00:51:24 +00:00
Stephen Wilson
78decfd025
linux: minor updates to account for recent namespace changes
...
llvm-svn: 128313
2011-03-26 00:34:57 +00:00
Stephen Wilson
63f37bba1a
Add PlatformGDBServer and ProcessGDBRemote to the build system.
...
llvm-svn: 128312
2011-03-26 00:32:59 +00:00
Stephen Wilson
743fe95b8e
Add a missing include required on Linux
...
llvm-svn: 128311
2011-03-26 00:32:07 +00:00
Ted Kremenek
104f6dfd1f
Tweak grammar in checker description.
...
llvm-svn: 128310
2011-03-26 00:25:42 +00:00
Kevin Enderby
d077a857cc
Remove the files for r128308 as it is causing a buildbot failure.
...
llvm-svn: 128309
2011-03-26 00:23:05 +00:00
Kevin Enderby
c8b4078654
Adding a C API to the disassembler for use by such tools as Darwin's otool(1).
...
This is a work in progress as the interface for producing symbolic operands is
not done. But a hacked prototype using information from the object file's
relocation entiries and replacing immediate operands with MCExpr's has been
shown to work with no changes to the instrucion printer. These APIs will be
moved into a dynamic library at some point.
llvm-svn: 128308
2011-03-26 00:06:33 +00:00
Craig Silverstein
c31d4ce81c
TraverseNestedNameSpecifier -> TraverseNestedNameSpecifierLoc in a few
...
places where we can, now. OK-ed by dgregor.
llvm-svn: 128307
2011-03-25 23:31:36 +00:00
Johnny Chen
1572bf40b4
Add test for A8.6.246 UMULL to both arm-tests.txt amd thumb-tests.txt.
...
llvm-svn: 128306
2011-03-25 23:02:58 +00:00
Johnny Chen
6e31bf1f6f
Add two test cases t2SMLABT and t2SMMULR for DisassembleThumb2Mul().
...
llvm-svn: 128305
2011-03-25 22:43:28 +00:00
Johnny Chen
49316e40ba
Fix DisassembleThumb2DPReg()'s handling of RegClass. Cannot hardcode GPRRegClassID.
...
Also add some test cases.
rdar://problem/9189829
llvm-svn: 128304
2011-03-25 22:19:07 +00:00
Devang Patel
5f070a51e7
Provide blockDecl's startLoc to startFunction. This fixes hidden bug exposed by recent code gen changes. This is tested by global-blocks-lines.exp in gdb testsuite.
...
llvm-svn: 128303
2011-03-25 21:26:13 +00:00
Jim Ingham
e5afbd422f
Revert the scheme.
...
llvm-svn: 128302
2011-03-25 20:57:42 +00:00
Daniel Dunbar
7c9295a5b4
Obj-C/NeXT: Update and reapply 108847, now that changes are more baked.
...
llvm-svn: 128300
2011-03-25 20:09:09 +00:00
Johnny Chen
aaf2c69400
DisassembleThumb2LdSt() did not handle t2LDRs correctly with respect to RegClass. Add two test cases.
...
rdar://problem/9182892
llvm-svn: 128299
2011-03-25 19:35:37 +00:00
Daniel Dunbar
1d84f37577
clang/Darwin: Add all the comparison functions, the desire to cherry pick just
...
the ones we want isn't worth the effort.
llvm-svn: 128298
2011-03-25 19:19:10 +00:00
Eli Friedman
9faf2f902c
Silly mistake in integer constant folding cleanup.
...
llvm-svn: 128297
2011-03-25 19:07:11 +00:00
Daniel Dunbar
4c70f3e6ac
Revert "Split single & double comparison routines into separate implementation
...
files," for now, I missed some necesary updates.
llvm-svn: 128296
2011-03-25 18:45:39 +00:00
Johnny Chen
4fd2194638
A8.6.226 TBB, TBH:
...
Add two test cases.
llvm-svn: 128295
2011-03-25 18:40:21 +00:00
Johnny Chen
b35548f44d
Modify DisassembleThumb2LdStEx() to be more robust/correct in light of recent change to
...
t2LDREX/t2STREX instructions. Add two test cases.
llvm-svn: 128293
2011-03-25 18:29:49 +00:00