summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Revert r166541, "clang/test: Add appropriate requirements as REQUIRES, ↵NAKAMURA Takumi2012-10-248-12/+0
| | | | | | | | corresponding to r166532." According to r166543, it is not needed for now. llvm-svn: 166544
* Clang now attempts to create a TargetMachine whenever a triple is given.Nadav Rotem2012-10-241-8/+17
| | | | | | | | Many of our tests specify triples that are not built into clang. In this commit we allow clang to fail loading the triple if we are only using clang to emit llvm ir. llvm-svn: 166543
* clang/test: Add appropriate requirements as REQUIRES, corresponding to r166532.NAKAMURA Takumi2012-10-248-0/+11
| | | | llvm-svn: 166541
* Add a test for -Warc-abi as requested by Fariborz.Nico Weber2012-10-241-0/+5
| | | | llvm-svn: 166540
* Add padding inreg registers to cause llvm to skip ecx when needed withRafael Espindola2012-10-244-35/+64
| | | | | | the x86_fastcallcc calling convention. llvm-svn: 166538
* Add inreg markers with the x86_fastcallcc calling convention.Rafael Espindola2012-10-244-11/+156
| | | | llvm-svn: 166537
* Address feedback from Eli Friedman on r166522.Matt Beaumont-Gay2012-10-242-8/+12
| | | | | | | In particular, we do want to warn on some unused cast subexpressions within macros. llvm-svn: 166534
* Change EmitAssemblyHelper to create the target machine earlyNadav Rotem2012-10-241-17/+49
| | | | | | | | | and use it to initialize the TargetTransformInfo analysis pass. We need the TTI information for the loop vectorizer. rdar://12464901 llvm-svn: 166532
* [analyzer] Handle 'SomeVar.SomeEnumConstant', which is legal in C++.Jordan Rose2012-10-232-7/+30
| | | | | | | | This caused assertion failures analyzing LLVM. <rdar://problem/12560282> llvm-svn: 166529
* [analyzer] Replace -analyzer-no-eagerly-trim-egraph with graph-trim-interval.Jordan Rose2012-10-239-23/+39
| | | | | | | | | | | | | After every 1000 CFGElements processed, the ExplodedGraph trims out nodes that satisfy a number of criteria for being "boring" (single predecessor, single successor, and more). Rather than controlling this with a cc1 option, which can only disable this behavior, we now have an analyzer-config option, 'graph-trim-interval', which can change this interval from 1000 to something else. Setting the value to 0 disables reclamation. The next commit relies on this behavior to actually test anything. llvm-svn: 166528
* [ms-inline asm] Test case for r166526.Chad Rosier2012-10-231-0/+9
| | | | llvm-svn: 166527
* [ms-inline asm] Update the triple to test r166523.Chad Rosier2012-10-231-1/+1
| | | | llvm-svn: 166524
* Don't emit -Wunused-value warnings from macro expansions.Matt Beaumont-Gay2012-10-232-0/+11
| | | | llvm-svn: 166522
* Tweak include orderDouglas Gregor2012-10-231-1/+1
| | | | llvm-svn: 166521
* Use a .def file for most of the diagnostic options.Douglas Gregor2012-10-2311-67/+110
| | | | llvm-svn: 166520
* Objective-C: check that when a category method is being implemented,Fariborz Jahanian2012-10-232-8/+35
| | | | | | | method type in cateogry matches the implementation. // rdar://12519216 llvm-svn: 166518
* Buildbot debugging is funDouglas Gregor2012-10-232-4/+7
| | | | llvm-svn: 166516
* One last unit-test fixDouglas Gregor2012-10-231-1/+2
| | | | llvm-svn: 166513
* More unit-test fixesDouglas Gregor2012-10-234-0/+4
| | | | llvm-svn: 166511
* Update clang-interpreter exampleDouglas Gregor2012-10-231-3/+4
| | | | llvm-svn: 166510
* Fixup unit tests for DiagnosticOptions changeDouglas Gregor2012-10-234-4/+4
| | | | llvm-svn: 166509
* Make DiagnosticOptions intrusively reference-counted, and make sureDouglas Gregor2012-10-2338-159/+196
| | | | | | | the various stakeholders bump up the reference count. In particular, the diagnostics engine now keeps the DiagnosticOptions object alive. llvm-svn: 166508
* CMake: Fix public header search for generating Xcode/MSVC projects.Jordan Rose2012-10-231-10/+20
| | | | | | | | | | | | | Previously, we only had support for one level of library under lib/, with the existence of the two-level lib/StaticAnalyzer/* hardcoded in the top-level CMakeLists.txt. This became a problem with split of libRewrite into several libraries -- with the same sub-names as the libraries in lib/StaticAnalyzer/. Now, we match up anything under lib/ to the corresponding directory in include/clang/. llvm-svn: 166505
* Fix pretty-printing pseudo-destructor calls. Patch by Grzegorz Jablonski.Eli Friedman2012-10-232-0/+5
| | | | llvm-svn: 166500
* Delete junk that snuck into r166498.Eli Friedman2012-10-231-18/+0
| | | | llvm-svn: 166499
* Add a new warning -Wmissing-variable-declarations, to warn about variablesEli Friedman2012-10-235-0/+91
| | | | | | | | | defined without a previous declaration. This is similar to -Wmissing-prototypes, but for variables instead of functions. Patch by Ed Schouten. llvm-svn: 166498
* Switch CodeGenOptions over to a .def file, like we do with LangOptions.Douglas Gregor2012-10-2312-203/+213
| | | | llvm-svn: 166497
* When rebuilding a DependentScopeDeclRefExpr, perform a lookup into the scopeRichard Smith2012-10-232-3/+19
| | | | | | even if it's dependent, in case it now names a member of the current instantiation. llvm-svn: 166496
* [ms-inline asm] Update for r166433.Chad Rosier2012-10-232-3/+9
| | | | llvm-svn: 166489
* Handle -pthread, -pg and -shared correctly on bitrig.Rafael Espindola2012-10-232-2/+23
| | | | | | Patch by David Hill. llvm-svn: 166483
* Fix some mdoc nitsSean Silva2012-10-231-4/+4
| | | | | | Patch by Eitan Adler! llvm-svn: 166482
* Make hasDeclaration() matcher work inside the memberExpr() matcher.Daniel Jasper2012-10-233-10/+30
| | | | llvm-svn: 166479
* clang/test/PCH/pch-dir.c: Update a comment for msvc. msvc(*-win32) implies ↵NAKAMURA Takumi2012-10-231-1/+1
| | | | | | -std=c++11. llvm-svn: 166478
* Implements the thisExpr matcher.Manuel Klimek2012-10-232-0/+19
| | | | | | Patch by Gabor Horvath. llvm-svn: 166477
* clang/test/PCH/pch-dir.c: Mark it as XFAIL:msvc. It doesn't fail (virtually ↵NAKAMURA Takumi2012-10-231-0/+3
| | | | | | xpass) on msvc. llvm-svn: 166473
* clang/test/PCH/pch-dir.c: Relax expressions of path separators for Win32.NAKAMURA Takumi2012-10-231-2/+2
| | | | llvm-svn: 166471
* If the precompiled header named by "-include" is actually a directory,Douglas Gregor2012-10-238-107/+328
| | | | | | | | | check each of the files within that directory to determine if any of them is an AST file that matches the language and target options. If so, the first matching AST file is loaded. This fixes a longstanding discrepency with GCC's precompiled header implementation. llvm-svn: 166469
* Fix -Wunused-value to not warn on expressions that have unresolved lookups dueMatt Beaumont-Gay2012-10-232-0/+20
| | | | | | to dependent arguments. llvm-svn: 166468
* [libclang] Add an environment variable to disable thread background ↵Argyrios Kyrtzidis2012-10-231-0/+3
| | | | | | priotity, for testing llvm-svn: 166466
* [ms-inline-asm] Add handling for errors coming out of the backend.Eli Friedman2012-10-233-7/+65
| | | | llvm-svn: 166463
* Don't try to use inreg with 0 sized structs. Thanks to Eli for reporting theRafael Espindola2012-10-232-1/+16
| | | | | | regression. llvm-svn: 166461
* [Options] Fix two options I mistransformed.Michael J. Spencer2012-10-231-2/+2
| | | | llvm-svn: 166458
* Ugly ugly hack for libstdc++-4.6 and libstdc++-4.7 compatibility. TheseRichard Smith2012-10-233-3/+53
| | | | | | | | | | | | | | | | | libraries have an incorrect definition of std::common_type (inherited from a bug in the standard -- see LWG issue 2141), whereby they produce reference types when they should not. If we instantiate a typedef named std::common_type<...>::type, which is defined in a system header as decltype(... ? ... : ...), and the decltype produces a reference type, convert it to the non-reference type. (This doesn't affect any LWG2141-conforming implementation of common_type, such as libc++'s, because the default implementation of common_type<...>::type isn't supposed to produce a reference type.) This is horrible. I'm really sorry. :( Better ideas appreciated! llvm-svn: 166455
* Handle implicitly-included PCH files the same way asDouglas Gregor2012-10-222-10/+17
| | | | | | | | implicitly-included PTH files during initialization, delaying the mapping down to the "original source file" until after later in the initialization process. llvm-svn: 166452
* Allow clients of the AST reader to specify what kinds of AST loadDouglas Gregor2012-10-225-81/+175
| | | | | | | | | | failures they know how to tolerate, e.g., out-of-date input files or configuration/version mismatches. Suppress the corresponding diagnostics if the client can handle it. No clients actually use this functionality, yet. llvm-svn: 166449
* Collapse ASTReader::ReadSLocEntryRecord() into its only caller,Douglas Gregor2012-10-222-9/+3
| | | | | | ReadSLocEntry(). No functionality change. llvm-svn: 166447
* Distinguish the various kinds of AST file loading failures:Douglas Gregor2012-10-225-121/+130
| | | | | | | | file corruption, compiler version mismatch, target/language configuration mismatch, out-of-date AST file. No functionality change yet. llvm-svn: 166446
* [Options] Add prefixes to options.Michael J. Spencer2012-10-2219-1120/+1297
| | | | | | | | | | | | | | Each option has a set of prefixes. When matching an argument such as -funroll-loops. First the leading - is removed as it is a prefix. Then a lower_bound search for "funroll-loops" is done against the option table by option name. From there each option prefix + option name combination is tested against the argument. This allows us to support Microsoft style options where both / and - are valid prefixes. It also simplifies the cases we already have where options come in both - and -- forms. Almost every option for gnu-ld happens to have this form. llvm-svn: 166444
* ASTReader.cpp: Fix a warning. [-Wunused-variable]NAKAMURA Takumi2012-10-221-0/+1
| | | | llvm-svn: 166442
* Testcase change for r166440.Eli Friedman2012-10-221-1/+1
| | | | llvm-svn: 166441
OpenPOWER on IntegriCloud