Argyrios Kyrtzidis
2169a75a0a
Do a lookup for the blocks runtime globals to see if they were declared,
...
instead of codegen waiting to consume such a declaration, which won't
happen if that decls are coming from a PCH.
Fixes rdar://10028656.
llvm-svn: 139359
2011-09-09 06:44:21 +00:00
Argyrios Kyrtzidis
e74bc0ef4c
[PCH] When loading the decls linked to an identifier, also make them visible
...
in the translation unit.
llvm-svn: 139358
2011-09-09 06:44:17 +00:00
Argyrios Kyrtzidis
94d3f9dcd0
Use ArrayRef in ExternalASTSource::SetExternalVisibleDeclsForName.
...
llvm-svn: 139357
2011-09-09 06:44:14 +00:00
Craig Topper
e812f9eed5
Add disassembler test for Intel syntax. Tests r139353.
...
llvm-svn: 139356
2011-09-09 06:35:44 +00:00
John McCall
9c3467e26c
Code formatting; no functionality change.
...
llvm-svn: 139355
2011-09-09 06:12:06 +00:00
John McCall
fec112d50e
Contextually converting to 'id' is not a useful operation. Contextually
...
converting to an arbitrary Objective-C pointer type is. Without
significantly re-implementing anything, change the API to reflect this,
and as a minor optimization, strip the pointer conversion off before
potentially building it.
Mostly, this removes a really bizarre-looking bit of code from
BuildInstanceMessage.
llvm-svn: 139354
2011-09-09 06:11:02 +00:00
Craig Topper
5d5134014f
Fix handling of Intel syntax disassembling of movs and stos to stop being blank. Also fixed scas, and cmps to always print size suffix in Intel syntax since its abiguous without arguments. Fixes PR10875.
...
llvm-svn: 139353
2011-09-09 05:40:53 +00:00
John McCall
9320b87cff
Give conversions of block pointers to ObjC pointers a different cast kind
...
than conversions of C pointers to ObjC pointers. In order to ensure that
we've caught every case, add asserts to CastExpr that strictly determine
which cast kind is used for which kind of bit cast.
llvm-svn: 139352
2011-09-09 05:25:32 +00:00
Richard Trieu
10162ab7ed
Clean up the RebuildUnknownAnyExpr visitor in SemaExpr.cpp. Mainly swapped around variable names so that this visitor be more like other visitors in clang.
...
llvm-svn: 139351
2011-09-09 03:59:41 +00:00
Richard Trieu
9becef691d
Changed references of BaseTy, MemInitTy, CXXScopeTy, TemplateParamsTy to CXXBaseSpecifier, CXXCtorInitializer, NestedNameSpecifier, TemplateParameterList and removed their typedefs.
...
llvm-svn: 139350
2011-09-09 03:18:59 +00:00
Richard Trieu
3481fcd869
Change references to StmtTy to Stmt and removed typedefs of StmtTy. Also removed typedef of AttrTy since it is not used.
...
llvm-svn: 139349
2011-09-09 02:16:15 +00:00
Douglas Gregor
26701a4371
Modules: introduce the __module_private__ declaration specifier, which
...
indicates that a declaration is only visible within the module it is
declared in.
llvm-svn: 139348
2011-09-09 02:06:17 +00:00
Richard Trieu
2bd0401b04
Change all references of type ExprTy to Expr and get rid of the typedefs.
...
llvm-svn: 139347
2011-09-09 02:00:50 +00:00
Richard Trieu
ba63ce6b7b
Capitialize paramater names in SemaExpr.cpp and resolve any parameter name conflicts between declarations and definitions from this and previous refactorings.
...
llvm-svn: 139346
2011-09-09 01:45:06 +00:00
Enrico Granata
bac233511d
Fixing an issue with Python commands defined interactively
...
llvm-svn: 139345
2011-09-09 01:41:30 +00:00
Akira Hatanaka
df1df7edf1
Change default target architecture from Mips1 to Mips32r1 in preparation for
...
removing support for Mips1 and Mips2.
This change and the ones that follow have been discussed with and approved by
Bruno.
llvm-svn: 139344
2011-09-09 01:13:27 +00:00
Benjamin Kramer
eba0b40384
Remove dead code.
...
llvm-svn: 139343
2011-09-09 00:22:05 +00:00
Johnny Chen
f2bd6a3984
Patch from Pilipe to allow "target create" on the remote-macosx platform!
...
llvm-svn: 139342
2011-09-09 00:20:12 +00:00
Nick Lewycky
940b598f6f
Fix release build:
...
MachOObjectFile.cpp:524: error: unused variable 'NumLoadCommands' [-Wunused-variable]
llvm-svn: 139341
2011-09-09 00:16:50 +00:00
Ivan Krasin
d5f2d8c341
gold plugin: report errors occured in lto_module_create_from_*
...
llvm-svn: 139340
2011-09-09 00:14:04 +00:00
Akira Hatanaka
83dee99c1b
80 columns.
...
llvm-svn: 139339
2011-09-09 00:13:35 +00:00
Johnny Chen
13f8dda9bc
FreeBSD platform patch from Filipe!
...
llvm-svn: 139338
2011-09-09 00:10:04 +00:00
Enrico Granata
13f1d56170
Basic infrastructure code to exploit malloc stack logging as available on Mac OS X to track the allocation history of pointers on the target process
...
llvm-svn: 139337
2011-09-09 00:04:24 +00:00
Johnny Chen
e92aa43b3b
Patch from Filipe!
...
One fixes a trailing comma bug (g++ doesn't like them)
The other gets the Error from the result of an expression evaluation and uses it as the error for the Process::LoadImage() method.
llvm-svn: 139336
2011-09-09 00:01:43 +00:00
Johnny Chen
2592b87209
Remove code rot (unused class OptionGroupFrameVariable) from CommandObjectFrameVariable.
...
Plus minor indentation change.
llvm-svn: 139335
2011-09-08 23:52:06 +00:00
Douglas Gregor
3168dcf134
The integer type of an enumeration type isn't always canonical
...
llvm-svn: 139334
2011-09-08 23:29:05 +00:00
Eric Christopher
22164ed943
Rearrange comment slightly for Bill.
...
llvm-svn: 139333
2011-09-08 23:28:19 +00:00
Eric Christopher
bd202c0496
Remove WCHAR_MIN and WCHAR_MAX from limits.h. According to posix and c99
...
these should be in stdint.h - and they already are.
Fixes rdar://10097036.
llvm-svn: 139332
2011-09-08 23:25:25 +00:00
Caitlin Sadowski
b4d24a9054
Thread safety: small edit to unused variation on warning left in by accident from earlier commit
...
llvm-svn: 139331
2011-09-08 23:17:03 +00:00
Devang Patel
9d904e1a97
Directly point debug info to the stack slot of the arugment, instead of trying to keep track of vreg in which it the arugment is copied. The LiveDebugVariable can keep track of variable's ranges.
...
llvm-svn: 139330
2011-09-08 22:59:09 +00:00
Owen Anderson
33d39536e6
All conditional branches are disallowed in IT blocks, not just CBZ/CBNZ.
...
llvm-svn: 139329
2011-09-08 22:48:37 +00:00
Owen Anderson
2fefa427d5
Soft fail CBZ/CBNZ in the disassembler if they appear inside an IT block.
...
llvm-svn: 139328
2011-09-08 22:42:49 +00:00
Douglas Gregor
8d9c56bb59
Add some delay between PCH creation and modifying one of the headers it depends on, which will---hopefully make this test predictably pass on Windows
...
llvm-svn: 139327
2011-09-08 22:32:33 +00:00
Matt Beaumont-Gay
042ce8e9d8
Extend -Wliteral-conversion to catch "int i = -1.234"
...
llvm-svn: 139326
2011-09-08 22:30:47 +00:00
Eric Christopher
460be996ce
Formatting and typo.
...
llvm-svn: 139325
2011-09-08 22:17:40 +00:00
Nadav Rotem
b5df62036b
Dix the 80-columns and remove unsupported v8i16 type from the list of legal vselect types.
...
llvm-svn: 139324
2011-09-08 22:17:35 +00:00
Jim Ingham
b7f6b2fa3c
Move the SourceManager from the Debugger to the Target. That way it can store the per-Target default Source File & Line.
...
Set the default Source File & line to main (if it can be found.) at startup. Selecting the current thread & or frame resets
the current source file & line, and "source list" as well as the breakpoint command "break set -l <NUM>" will use the
current source file.
llvm-svn: 139323
2011-09-08 22:13:49 +00:00
Jim Grosbach
7db8d697cf
Thumb2 assembly parsing and encoding for LDRD(immediate).
...
Refactor operand handling for STRD as well. Tests for that forthcoming.
llvm-svn: 139322
2011-09-08 22:07:06 +00:00
Caitlin Sadowski
ee5db8b5c4
Thread Safety: In C++0x Mutexes are the objects that control access to shared variables, while Locks are the objects that acquire and release Mutexes. We switch to this new terminology.
...
llvm-svn: 139321
2011-09-08 21:52:50 +00:00
Bruno Cardoso Lopes
46b9cde019
Add a AVX version of a simple i64 -> f64 bitcast. This could be
...
triggered using llc with -O0, which wouldn't let it be folded and
expose the lack of this pattern.
llvm-svn: 139320
2011-09-08 21:52:33 +00:00
Jakob Stoklund Olesen
ed2a360fd1
The frexp, modf, and remquo builtins are not 'const'.
...
These functions return a second value by writing to a pointer argument,
so they cannot be marked 'readnone' which implies that they don't access
memory.
<rdar://problem/10070234>
llvm-svn: 139319
2011-09-08 21:18:03 +00:00
Bruno Cardoso Lopes
51920a6191
Reapply testcase from r139309!
...
llvm-svn: 139318
2011-09-08 21:05:43 +00:00
Eli Friedman
e776b580c1
Make sure to handle the case where emitPredicateMatch returns false. Noticed by inspection.
...
llvm-svn: 139317
2011-09-08 21:00:31 +00:00
Kevin Enderby
7b46bb8e32
Fix a Darwin x86_64 special case of a jmp to a temporary symbol from an atom
...
without a base symbol that must not have a relocation entry.
llvm-svn: 139316
2011-09-08 20:53:44 +00:00
Johnny Chen
47f43da196
Watchpoint WIP: on the debugger side, create an instance of either
...
StopInfoTrace or StopInfoWatchpoint based on the exc_sub_code, as well.
llvm-svn: 139315
2011-09-08 20:52:34 +00:00
Benjamin Kramer
022ecdf277
Add support for relocations to ObjectFile.
...
Patch by Danil Malyshev!
llvm-svn: 139314
2011-09-08 20:52:17 +00:00
Greg Clayton
dc55a80da3
Added help on stack frame selection compared to GDB and corrected the register
...
command help to match the current LLDB.
llvm-svn: 139313
2011-09-08 20:14:22 +00:00
Bruno Cardoso Lopes
23eb5265b4
* Combines Alignment, AuxInfo, and TB_NOT_REVERSABLE flag into a
...
single field (Flags), which is a bitwise OR of items from the TB_*
enum. This makes it easier to add new information in the future.
* Gives every static array an equivalent layout: { RegOp, MemOp, Flags }
* Adds a helper function, AddTableEntry, to avoid duplication of the
insertion code.
* Renames TB_NOT_REVERSABLE to TB_NO_REVERSE.
* Adds TB_NO_FORWARD, which is analogous to TB_NO_REVERSE, except that
it prevents addition of the Reg->Mem entry. (This is going to be used
by Native Client, in the next CL).
Patch by David Meyer
llvm-svn: 139311
2011-09-08 18:35:57 +00:00
Caitlin Sadowski
2d3f70ac1c
Thread Safety: adding basic no thread safety analysis option
...
llvm-svn: 139310
2011-09-08 18:35:21 +00:00
Bruno Cardoso Lopes
f483c081b6
Remove this crashing test, until I figure out what's going wrong here
...
llvm-svn: 139309
2011-09-08 18:32:36 +00:00