summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Propagate TargetLibraryInfo throughout ConstantFolding.cpp and Chad Rosier2011-12-0117-279/+456
| | | | | | | InstructionSimplify.cpp. Other fixups as needed. Part of rdar://10500969 llvm-svn: 145559
* If we are going to assert due to an unhanded opcode, stuff the opcode value ↵Jim Ingham2011-12-011-2/+6
| | | | | | into the CrashReporter string first. llvm-svn: 145558
* [libclang] Create a diagnostic set to pass at the end of indexing.Argyrios Kyrtzidis2011-12-015-17/+41
| | | | llvm-svn: 145557
* Make use of "getScalarType()". No functionality change.Nick Lewycky2011-12-011-8/+3
| | | | llvm-svn: 145556
* Infer the submodule ID for a given declaration based on the locationDouglas Gregor2011-12-014-4/+60
| | | | | | | of that declaration, and encode the submodule ID in each declaration stored in an AST file. llvm-svn: 145555
* Made symbol lookup in the expression parser moreSean Callanan2011-12-013-10/+12
| | | | | | | | | | | | | | robust: - Now a client can specify what kind of symbols are needed; notably, this allows looking up Objective-C class symbols specifically. - In the class of symbols being looked up, if one is non-NULL and others are NULL, LLDB now prefers the non-NULL one. llvm-svn: 145554
* Small fix for assembler generation on Darwin PPC64. Patch by Michael ↵Eli Friedman2011-12-011-1/+1
| | | | | | Kostylev. PR11437. llvm-svn: 145553
* When sending a message to a receiver that has "unknown any" type,Douglas Gregor2011-12-014-3/+44
| | | | | | | force the unknown any type to "id" so that the message send can be completed without requiring a case. Fixes <rdar://problem/10506646>. llvm-svn: 145552
* ParmVarDecls have no linkage. Previously we would report that parametersArgyrios Kyrtzidis2011-12-012-2/+8
| | | | | | | | in type signatures have external linkage. Fixes rdar://10058317. llvm-svn: 145551
* Switch the ID numbers used for submodule IDs in the AST reader over toDouglas Gregor2011-12-017-21/+174
| | | | | | | | a standard global/local scheme, so that submodule definitions will eventually be able to refer to submodules in other top-level modules. We'll need this functionality soonish. llvm-svn: 145549
* Specially whitelist the selector 'addOperationWithBlock:' for the ↵Ted Kremenek2011-12-012-1/+41
| | | | | | | | retain-cycle checking in -Warc-retain-cycles. This commonly is hit by users using NSOperationQueue. Fixes <rdar://problem/10465721>. llvm-svn: 145548
* Further tweak -Wurneachable-code and templates by allowing the warning to run onTed Kremenek2011-12-015-17/+45
| | | | | | | | | explicit template specializations (which represent actual functions somebody wrote). Along the way, refactor some other code which similarly cares about whether or not they are looking at a template instantiation. llvm-svn: 145547
* Fix MSVC class layout for empty classes. Patch by Dmitry Sokolov.Eli Friedman2011-12-012-4/+17
| | | | llvm-svn: 145544
* Updated heuristic regulating small string bufferHoward Hinnant2011-12-012-1/+5
| | | | llvm-svn: 145543
* Another GCC fixDouglas Gregor2011-11-301-1/+1
| | | | llvm-svn: 145542
* Revert most of r145372 for now. Lookahead beyond the ';' in a functionRichard Smith2011-11-306-73/+1
| | | | | | | | | declaration tickles a bug in the way we handle visibility pragmas. The improvement to error recovery for template function definitions declared with the 'typedef' specifier in r145372 is unrelated and not reverted here. llvm-svn: 145541
* Unbreak build with GCC. Clang is too lame to diagnose this particular ↵Douglas Gregor2011-11-301-2/+0
| | | | | | ill-formedness llvm-svn: 145539
* Promote ModuleMap::Module to a namespace-scope class in the BasicDouglas Gregor2011-11-3031-465/+507
| | | | | | | | | library, since modules cut across all of the libraries. Rename serialization::Module to serialization::ModuleFile to side-step the annoying naming conflict. Prune a bunch of ModuleMap.h includes that are no longer needed (most files only needed the Module type). llvm-svn: 145538
* rdar://problem/10501020Johnny Chen2011-11-304-5/+7
| | | | | | | | | | | | | | | | | ClangASTSource::~ClangASTSource() was calling ClangASTContext *scratch_clang_ast_context = m_target->GetScratchClangASTContext(); which had the side effect of deleting this very ClangASTSource instance. Not good. Change it to // We are in the process of destruction, don't create clang ast context on demand // by passing false to Target::GetScratchClangASTContext(create_on_demand). ClangASTContext *scratch_clang_ast_context = m_target->GetScratchClangASTContext(false); The Target::GetScratchClangASTContext(bool create_on_demand=true) has a new signature. llvm-svn: 145537
* [PCH] In ASTReader::FinishedDeserializing, after we do ↵Argyrios Kyrtzidis2011-11-303-29/+77
| | | | | | | | | | | | | PassInterestingDeclsToConsumer we may end up having added more pending stuff to do, so go in a loop until everything is cleared out. This fixes the error in rdar://10278815 which has a certain David Lynch-esque quality.. error: unknown type name 'BOOL'; did you mean 'BOOL'? llvm-svn: 145536
* Replace an assert() with an actual diagnostic.Jim Grosbach2011-11-301-1/+3
| | | | llvm-svn: 145535
* Test case for fix committed in r145441.Lang Hames2011-11-301-0/+3
| | | | llvm-svn: 145534
* test asan at -O0Kostya Serebryany2011-11-301-2/+1
| | | | llvm-svn: 145532
* make asan work at -O0, clang part. Patch by glider@google.comKostya Serebryany2011-11-301-0/+2
| | | | llvm-svn: 145531
* make asan work at -O0, llvm part. Patch by glider@google.comKostya Serebryany2011-11-302-2/+7
| | | | llvm-svn: 145530
* Bumped Xcode project versions for lldb-90 and debugserver-154Greg Clayton2011-11-303-22/+22
| | | | llvm-svn: 145528
* Added support to the Objective-C language runtimeSean Callanan2011-11-3013-12/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | to find Objective-C class types by looking in the symbol tables for the individual object files. I did this as follows: - I added code to SymbolFileSymtab that vends Clang types for symbols matching the pattern "_OBJC_CLASS_$_NSMyClassName," making them appear as Objective-C classes. This only occurs in modules that do not have debug information, since otherwise SymbolFileDWARF would be in charge of looking up types. - I made a new SymbolVendor subclass for the Apple Objective-C runtime that is in charge of making global lookups of Objective-C types. It currently just sends out type lookup requests to the appropriate SymbolFiles, but in the future we will probably extend it to query the runtime more completely. I also modified a testcase whose behavior is changed by the fact that we now actually return an Objective-C type for __NSCFString. llvm-svn: 145526
* Support for encoding all FMA4 instructions and tablegen patterns for allJan Sjödin2011-11-304-1/+1090
| | | | | | remaining FMA4 instructions and intrinsics with tests. llvm-svn: 145525
* Per an offline conversation with John McCall, have StmtPrinter actually ↵Ted Kremenek2011-11-302-7/+10
| | | | | | print out the source expression for OpaqueValueExpr. llvm-svn: 145524
* Make GlobalMerge honor the preferred alignment on globals without an ↵Eli Friedman2011-11-305-10/+32
| | | | | | | | explicitly specified alignment. <rdar://problem/10497732>. llvm-svn: 145523
* More cleanups. No content change.Bill Wendling2011-11-301-9/+13
| | | | llvm-svn: 145522
* Minor cleanup. No content change.Bill Wendling2011-11-301-7/+23
| | | | llvm-svn: 145521
* Don't run -Wunreachable-code on template instantiations. Different ↵Ted Kremenek2011-11-302-2/+30
| | | | | | instantiations may produce different unreachable code results, and it is very difficult for us to prove that ALL instantiations of a template have specific unreachable code. If we come up with a better solution, then we can revisit this, but this approach will at least greatly reduce the noise of this warning for code that makes use of templates. llvm-svn: 145520
* Remove the install-clang-c makefile target.Bob Wilson2011-11-301-9/+0
| | | | | | | When I did this before it broke a buildbot that was testing that target, but we've removed that buildbot now. llvm-svn: 145519
* Remove an XXX which hasn't been fixed yet. It's too late now.Bill Wendling2011-11-301-3/+2
| | | | llvm-svn: 145518
* Remove unused variableMatt Beaumont-Gay2011-11-301-2/+0
| | | | llvm-svn: 145517
* Add processing of '-help' option.Johnny Chen2011-11-301-0/+3
| | | | llvm-svn: 145516
* Don't collide loop variable names (to appease GCC)Matt Beaumont-Gay2011-11-301-7/+6
| | | | llvm-svn: 145515
* Note that we'll need to handle __include_macros specially in the module loaderDouglas Gregor2011-11-301-0/+1
| | | | llvm-svn: 145514
* Add some tests for all-lanes VLD1 parsing.Jim Grosbach2011-11-301-0/+14
| | | | llvm-svn: 145512
* Make sure that we print out function or symbol information. If we disassembledGreg Clayton2011-11-301-1/+1
| | | | | | a symbol, were weren't showing the "<module>`<symbol>" header. llvm-svn: 145511
* ARM parsing for VLD1 all lanes, with writeback.Jim Grosbach2011-11-304-43/+82
| | | | llvm-svn: 145510
* Get the -march argument based on the target MIPS architecture or cpu and passAkira Hatanaka2011-11-301-7/+32
| | | | | | | | | it to GNU assembler. In addition, change function getMipsArchFromCPU() so that it can be reused in ConstructJob(). Patch by Simon Atanasyan. llvm-svn: 145509
* Add a few functions to TargetLibraryInfo.Chad Rosier2011-11-302-15/+148
| | | | llvm-svn: 145508
* I broke the test suite (4 failures) with r145459 check-in.Johnny Chen2011-11-301-0/+1
| | | | | | Fix the breakage by properly setting the result status before returning. llvm-svn: 145507
* Update CMake build.Benjamin Kramer2011-11-301-0/+1
| | | | llvm-svn: 145506
* Refactor shadow poisoning done by asan-rt, no funtionality changes; patch by ↵Kostya Serebryany2011-11-306-54/+63
| | | | | | samsonov@google.com llvm-svn: 145505
* ARM parsing for VLD1 two register all lanes, no writeback.Jim Grosbach2011-11-306-5/+31
| | | | llvm-svn: 145504
* Move the module auto-import logic after the logic that allows aDouglas Gregor2011-11-301-29/+29
| | | | | | | | | | callback client to suggest an alternative search path and after we complain when the included file can't be found. The former can't be tested in isolation, the latter doesn't actually matter (because we won't make a module suggestion if no header is available). However, the flow is better this way. llvm-svn: 145502
* Trivial indentation fix for the code I just committedDouglas Gregor2011-11-301-3/+3
| | | | llvm-svn: 145501
OpenPOWER on IntegriCloud