summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [modules] Stop walking all modules when looking for lexical decls for aRichard Smith2015-08-065-75/+66
| | | | | | DeclContext. These only ever come from the owning module file for the Decl. llvm-svn: 244285
* Fix alignment of TemplateArgumentList.James Y Knight2015-08-061-1/+1
| | | | llvm-svn: 244280
* [modules] Remove now-unused MergedLookups map.Richard Smith2015-08-062-27/+0
| | | | llvm-svn: 244277
* [modules] Remove redundant lookups into non-primary DeclContexts. These were ↵Richard Smith2015-08-061-64/+13
| | | | | | made unnecessary by r244192. llvm-svn: 244271
* [ItaniumCXXABI] Don't import RTTI data for classes with key functionsDavid Majnemer2015-08-062-4/+21
| | | | | | | | | MinGW has some pretty strange behvaior around RTTI and dllimport/dllexport: - RTTI data is never imported - RTTI data is only exported if the class has no key function. llvm-svn: 244266
* Convert a few classes over to use the new TrailingObjects helper.James Y Knight2015-08-065-107/+177
| | | | | | | | | | This initial commit serves as an example -- the remainder of the classes using pointer arithmetic for trailing objects will be converted in subsequent changes. Differential Revision: http://reviews.llvm.org/D11298 llvm-svn: 244262
* Remove unused 'Owned' flag from TemplateArgumentList.James Y Knight2015-08-062-15/+9
| | | | llvm-svn: 244261
* [Frontend] Fix crash when serializing diagnostics with really long text.Argyrios Kyrtzidis2015-08-062-1/+31
| | | | | | rdar://21896690 llvm-svn: 244245
* Fix memory ownership in the NeonEmitter by using values instead of pointers ↵David Blaikie2015-08-061-37/+30
| | | | | | | | | | | | | (smart or otherwise) Improvement to the memory leak fix in 244196. Address validity is required for the Intrinsic objects, but since the collections only ever grow (no elements are removed), deque provides sufficient guarantees (that the objects will never be reallocated/moved around) for this use case. llvm-svn: 244241
* [OPENMP 4.1] Allow references in init expression for loop-based constructs.Alexey Bataev2015-08-0613-56/+138
| | | | | | OpenMP 4.1 allows to use variables with reference types in private clauses and, therefore, in init expressions of the cannonical loop forms. llvm-svn: 244209
* Mark calls in thunk functions as tail-call optimization candidatesMichael Kuperstein2015-08-062-1/+3
| | | | | | | | | | | | | When a thunk is generated with a call to the original adjusted function, the thunk appears in the debugger call stack. We want the backend to perform tail-call optimization on the call, to make it invisible to the debugger. This fixes PR24235 Patch by: amjad.aboud@intel.com Differential Revision: http://reviews.llvm.org/D11476 llvm-svn: 244207
* [X86] Add support for _MM_ALIGN16Michael Kuperstein2015-08-062-0/+21
| | | | | | Differential Revision: http://reviews.llvm.org/D11753 llvm-svn: 244201
* Plug a memory leak in NeonEmitter: Intrinsics allocated were never released.Yaron Keren2015-08-061-0/+6
| | | | llvm-svn: 244196
* [ObjC] Circular containers: add support of subclassesAlex Denisov2015-08-066-133/+140
| | | | llvm-svn: 244193
* [modules] Defer setting up the lookup table for a DeclContext until we canRichard Smith2015-08-064-128/+126
| | | | | | | | | | | | | | | | determine the primary context, rather than sometimes registering the lookup table on the wrong context. This exposed a couple of bugs: * the odr violation check didn't deal properly with mergeable declarations if the declaration retained by name lookup wasn't in the canonical definition of the class * the (broken) RewriteDecl mechanism would emit two name lookup tables for the same DeclContext into the same module file (one as part of the rewritten declaration and one as a visible update for the old declaration) These are both fixed too. llvm-svn: 244192
* [test] Another attempt to fix the test.Argyrios Kyrtzidis2015-08-061-1/+1
| | | | llvm-svn: 244187
* Rename the non-coding style conformant functions in namespace BuiltinsEric Christopher2015-08-0611-63/+61
| | | | | | to match the rest of their brethren and reformat the bits that need it. llvm-svn: 244186
* Driver: Strip -header-include-file and -diagnostic-log-file from crash repro ↵Justin Bogner2015-08-052-2/+7
| | | | | | | | | scripts These two arguments tend to refer to a local path that won't exist when we try to reproduce a bug. Strip them. llvm-svn: 244179
* Rename DescriptionString -> DataLayoutString as it matches the actualEric Christopher2015-08-057-98/+96
| | | | | | use of the string. llvm-svn: 244178
* [test] Fix tests in non-darwin bots.Argyrios Kyrtzidis2015-08-053-5/+5
| | | | llvm-svn: 244176
* Add -fno-coverage-mapping flag.Diego Novillo2015-08-054-3/+15
| | | | | | | This new flag allows the user to disable a previous instance of -fcoverage-mapping, if needed. llvm-svn: 244170
* function_ref-ize ExternalASTSource::FindExternalLexicalDecl and remove itsRichard Smith2015-08-0510-139/+76
| | | | | | | | useless return value. Switch to using it directly when completing the redeclaration chain for an anonymous declaration, and reduce the set of declarations that we load in the process to just those of the right kind. llvm-svn: 244161
* Add flags to disable profile generation.Diego Novillo2015-08-054-28/+72
| | | | | | | | | | | | This patch adds flags -fno-profile-instr-generate and -fno-profile-instr-use, and the GCC aliases -fno-profile-generate and -fno-profile-use. These flags are used in situations where users need to disable profile generation or use for specific files in a build, without affecting other files. llvm-svn: 244153
* Reword a comment about IncludeDirGroup. NFCDouglas Katzman2015-08-051-4/+5
| | | | | | | Referring to the groups by mixing the enumerated name with the command-line flag was not as clear as could be. llvm-svn: 244150
* Remove unused header includes.Eric Christopher2015-08-052-2/+0
| | | | llvm-svn: 244131
* Rename builtin_lang -> Langs to match the rest of the code a bit better.Eric Christopher2015-08-052-10/+11
| | | | llvm-svn: 244126
* Remove unused function GetBuiltinNames.Eric Christopher2015-08-052-16/+0
| | | | llvm-svn: 244125
* Documentation: fix another typo, "arrays types" -> "array types".James Dennett2015-08-051-1/+1
| | | | | | Thanks to Kim Gräsman <kim.grasman@gmail.com> for pointing this out. llvm-svn: 244124
* [CMake] Add USES_TERMINAL 1 to ExternalProject_Add_Step calls on ↵Chris Bieneman2015-08-051-0/+4
| | | | | | 3.3.20150708 and later. llvm-svn: 244119
* Remove unused comparison operators from the Builtin Info struct.Eric Christopher2015-08-051-7/+0
| | | | llvm-svn: 244111
* Remove unnecessary ClangLibdirSuffix variable. Yaron Keren2015-08-051-6/+4
| | | | | | Twine + const char * is supported. llvm-svn: 244110
* Documentation: fix a typo, "This flag is determines" -> "This flag determines".James Dennett2015-08-051-1/+1
| | | | | | No functional change. llvm-svn: 244104
* Add -gcodeview and -gdwarf to control which type Clang emitsReid Kleckner2015-08-058-10/+68
| | | | | | | | | | | | | | | Summary: By default, 'clang' emits dwarf and 'clang-cl' emits codeview. You can force emission of one or both by passing -gcodeview and -gdwarf to either driver. Reviewers: dblaikie, hans Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11742 llvm-svn: 244097
* [AArch64] Enable thread sanitizer on clangRenato Golin2015-08-051-2/+2
| | | | | | | | With this option, clang can use -fsanitize=thread on AArch64. Patch by Adhemerval Zanella. llvm-svn: 244091
* Claim arguments that belong to 'clang_ignored_gcc_optimization_f_Group'Douglas Katzman2015-08-052-0/+14
| | | | | | | | | | This seems preferable to printing two warnings per unsupported option- one warning about not supporting it, and one about not using it. It also makes the '-Wno-' option do what you mean. Differential Revision: http://reviews.llvm.org/D11766 llvm-svn: 244079
* [test] Attempt a change to see if it fixes the test for the windows bot.Argyrios Kyrtzidis2015-08-051-1/+1
| | | | llvm-svn: 244076
* [CMake] First pass at adding support for clang bootstrap builds to CMakeChris Bieneman2015-08-051-0/+74
| | | | | | | | | | | | | | | | | | | | | | | Summary: This patch adds a new CLANG_ENABLE_BOOTSTRAP option to CMake which adds targets for building a stage2 bootstrap compiler. The targets are: bootstrap-configure bootstrap-build bootstrap (same as bootstrap-configure and bootstrap-build) bootstrap-install bootstrap-check-llvm bootstrap-check-clang bootstrap-check-all If you are using 3.3.20150708 or greater it utilizes the ninja USES_TERMINAL_* settings on the external project so that the output is properly buffered. Reviewers: bogner, chandlerc Subscribers: filcab, cfe-commits Differential Revision: http://reviews.llvm.org/D11743 llvm-svn: 244070
* [test/Index] Update libclang tests to use libclang for creating PCH files.Argyrios Kyrtzidis2015-08-0513-12/+16
| | | | | | | This is consistent and tests the primary configuration we want to test, libclang creating and consuming PCH files. llvm-svn: 244066
* Fix a tiny bug in -no-canonical-prefixes that somehow we have neverChandler Carruth2015-08-053-11/+24
| | | | | | | | | | | | | | | | | | | | | | noticed until now. The code for setting up the driver's InstalledDir didn't respect -no-canonical-prefixes. Because of this, there are a few places in the driver where we would unexpectedly form absolute paths, notably when searching for and finding GCC installations to use, etc. The fix is straightforward, and I've added this path to '-v' both so we can test it sanely and so that it will be substantially more obvious the next time someone has to debug something here. Note that there is another bug that we don't actually *canonicalize* the installed directory! I don't really want to fix that because I don't have a realistic way to test the usage of this mode. I suspect that folks using the shared module cache would care about getting this right though, and so they might want to address it. I've left the appropriate FIXMEs so that it is clear what to change, and I've updated the test code to make it clear what is happening here. llvm-svn: 244065
* Add missing atomic libcall support.James Y Knight2015-08-053-3/+146
| | | | | | | | | | Support for emitting libcalls for __atomic_fetch_nand and __atomic_{add,sub,and,or,xor,nand}_fetch was missing; add it, and some test cases. Differential Revision: http://reviews.llvm.org/D10847 llvm-svn: 244063
* [SHAVE] uppercase the CHECK prefixes in 'lit' tests. NFCDouglas Katzman2015-08-051-7/+7
| | | | llvm-svn: 244052
* Delete trailing whitespaceDouglas Katzman2015-08-051-16/+16
| | | | llvm-svn: 244051
* Officially end my reign as owner of the driver.Chad Rosier2015-08-051-4/+0
| | | | llvm-svn: 244049
* Add AST matchers for narrowing constructors that are default, copy, or move ↵Aaron Ballman2015-08-054-0/+162
| | | | | | constructors, as well as functionality to determine whether a ctor initializer is a base initializer. llvm-svn: 244036
* [AST] ArrayRefize template param list info setters. No functionality change ↵Benjamin Kramer2015-08-055-52/+33
| | | | | | intended. llvm-svn: 244028
* [AST] ArrayRefize BlockDecl::setCaptures. No functionality change intended.Benjamin Kramer2015-08-055-28/+14
| | | | llvm-svn: 244027
* [AST] ArrayRefize template argument packs. No functionality change intended.Benjamin Kramer2015-08-0511-45/+34
| | | | llvm-svn: 244026
* [Comments] Replace custom ArrayRef copying with ArrayRef::copy. NFC.Benjamin Kramer2015-08-051-6/+2
| | | | llvm-svn: 244025
* [Parse] ArrayRefize PragmaLoopHintInfo. No functionality change.Benjamin Kramer2015-08-051-10/+4
| | | | llvm-svn: 244024
* Don't repeat function names in comments. NFC.Filipe Cabecinhas2015-08-053-27/+23
| | | | llvm-svn: 244018
OpenPOWER on IntegriCloud