- Oct 24, 2012
-
-
Nadav Rotem authored
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
-
Rafael Espindola authored
the x86_fastcallcc calling convention. llvm-svn: 166538
-
Rafael Espindola authored
llvm-svn: 166537
-
Matt Beaumont-Gay authored
In particular, we do want to warn on some unused cast subexpressions within macros. llvm-svn: 166534
-
Nadav Rotem authored
and use it to initialize the TargetTransformInfo analysis pass. We need the TTI information for the loop vectorizer. rdar://12464901 llvm-svn: 166532
-
Jordan Rose authored
This caused assertion failures analyzing LLVM. <rdar://problem/12560282> llvm-svn: 166529
-
Jordan Rose authored
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
-
Matt Beaumont-Gay authored
llvm-svn: 166522
-
Douglas Gregor authored
llvm-svn: 166520
-
Fariborz Jahanian authored
method type in cateogry matches the implementation. // rdar://12519216 llvm-svn: 166518
-
Douglas Gregor authored
the various stakeholders bump up the reference count. In particular, the diagnostics engine now keeps the DiagnosticOptions object alive. llvm-svn: 166508
-
- Oct 23, 2012
-
-
Eli Friedman authored
llvm-svn: 166500
-
Eli Friedman authored
defined without a previous declaration. This is similar to -Wmissing-prototypes, but for variables instead of functions. Patch by Ed Schouten. llvm-svn: 166498
-
Douglas Gregor authored
llvm-svn: 166497
-
Richard Smith authored
even if it's dependent, in case it now names a member of the current instantiation. llvm-svn: 166496
-
Chad Rosier authored
llvm-svn: 166489
-
Rafael Espindola authored
Patch by David Hill. llvm-svn: 166483
-
Douglas Gregor authored
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
-
Matt Beaumont-Gay authored
to dependent arguments. llvm-svn: 166468
-
Eli Friedman authored
llvm-svn: 166463
-
Rafael Espindola authored
regression. llvm-svn: 166461
-
Richard Smith authored
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
-
Douglas Gregor authored
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
-
Douglas Gregor authored
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
-
Douglas Gregor authored
ReadSLocEntry(). No functionality change. llvm-svn: 166447
-
Douglas Gregor authored
file corruption, compiler version mismatch, target/language configuration mismatch, out-of-date AST file. No functionality change yet. llvm-svn: 166446
-
Michael J. Spencer authored
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
-
- Oct 22, 2012
-
-
NAKAMURA Takumi authored
llvm-svn: 166442
-
Richard Trieu authored
expressions involving __has_include llvm-svn: 166438
-
Daniel Dunbar authored
llvm-svn: 166431
-
Daniel Dunbar authored
llvm-svn: 166430
-
Douglas Gregor authored
manager block and input-file information in the control block. The source manager entries now point back into the control block. Input files are now lazily deserialized (if validation is disabled). Reduces Cocoa's PCH by the ~70k I added when I introduced the redundancy in r166251. llvm-svn: 166429
-
Daniel Dunbar authored
- This is an assumption that is currently hardwired into the backend, we need to do this in order for the frontend and backend to agree. llvm-svn: 166428
-
Daniel Jasper authored
llvm-svn: 166421
-
Richard Smith authored
produces an exception of 'noexcept(false)' and is thus compatible with an explicit exception specification of 'noexcept(false)'. llvm-svn: 166404
-
- Oct 21, 2012
-
-
Benjamin Kramer authored
llvm-svn: 166391
-
Simon Atanasyan authored
Add support of MIPS n32 ABI to the Clang driver. The fix builds correct library/object files paths and passes appropriate command line options to the linker if user provides -mabi=n32 option. The patch reviewed by Rafael Espindola. llvm-svn: 166389
-
Richard Smith authored
found: if an overloaded operator& is present before a template definition, the expression &T::foo is represented as a CXXOperatorCallExpr, not as a UnaryOperator, so we didn't notice that it's permitted to reference a non-static data member of an unrelated class. While investigating this, I discovered another problem in this area: we are treating template default arguments as unevaluated contexts during substitution, resulting in performing incorrect checks for uses of non-static data members in C++11. That is not fixed by this patch (I'll look into this soon; it's related to the failure to correctly instantiate constexpr function templates), but was resulting in this bug not firing in C++11 mode (except with -Wc++98-compat). Original message: PR14124: When performing template instantiation of a qualified-id outside of a class, diagnose if the qualified-id instantiates to a non-static class member. llvm-svn: 166385
-
Lang Hames authored
declarations and statements. Emit an error if the FP_CONTRACT is used later in a compound statement. llvm-svn: 166383
-
- Oct 20, 2012
-
-
Benjamin Kramer authored
llvm-svn: 166377
-