- Jan 24, 2012
-
-
Anna Zaks authored
llvm-svn: 148844
-
Chandler Carruth authored
inside of GCCInstallation to be a proper llvm::Triple. This is still a touch ugly because we have to use it as a string in so many places, but I think on the whole the more structured representation is better. Comments of course welcome if this tradeoff isn't working for folks. llvm-svn: 148843
-
Kostya Serebryany authored
address safety analysis (such as e.g. AddressSanitizer or SAFECode) for a specific function. When building with AddressSanitizer, add AddressSafety function attribute to every generated function except for those that have __attribute__((no_address_safety_analysis)). With this patch we will be able to 1. disable AddressSanitizer for a particular function 2. disable AddressSanitizer-hostile optimizations (such as some cases of load widening) when AddressSanitizer is on. llvm-svn: 148842
-
Chandler Carruth authored
I can't read Java-style 'Gcc' acronyms. ;] No functionality changed. llvm-svn: 148840
-
Chandler Carruth authored
function. The logic for this, and I want to emphasize that this is the logic for computing the *target* triple, is currently scattered throughout various different HostInfo classes ToolChain factoring functions. Best part, it is largely *duplicated* there. The goal is to hoist all of that up to here where we can deal with it once, and in a consistent manner. Unfortunately, this uncovers more fun problems: the ToolChains assume that the *actual* target triple is the one passed into them by these factory functions, while the *host* triple is the one in the driver. This already was a lie, and a damn lie, when the '-target' flag was specified. It only really worked when the difference stemmed from '-m32' and '-m64' flags. I'll have to fix that (and remove all the FIXMEs I've introduced here to document the problem) before I can finish hoisting the target-calculation logic. It's bugs all the way down today it seems... llvm-svn: 148839
-
Douglas Gregor authored
pointer to incomplete type from an ExtWarn to an error. We put the ExtWarn in place as part of a workaround for Boost (PR6527), but it (1) doesn't actually match a GCC extension and (2) has been fixed for two years in Boost, and (3) causes us to emit code that fails badly at run time, so it's a bad idea to keep it. Fixes PR11803. llvm-svn: 148838
-
Douglas Gregor authored
in the definition as well. llvm-svn: 148831
-
Fariborz Jahanian authored
// rdar://10731065 llvm-svn: 148823
-
Douglas Gregor authored
classes and protocols, implementing lazy-import semantics for both. llvm-svn: 148816
-
Douglas Gregor authored
when it actually has changed (and not, e.g., when we've simply attached a deserialized macro definition). Good for ~1.5% reduction in module file size, mostly in the identifier table. llvm-svn: 148808
-
Douglas Gregor authored
available. Clang's <unwind.h> isn't ready for prime time. Fixes <rdar://problem/10733587>. llvm-svn: 148807
-
Chandler Carruth authored
inside the innards of the Driver implementation, and only ever implemented to return 'true' for the Darwin OSes. Instead use a more direct query on the target triple and a comment to document why the target matters here. If anyone is worried about this predicate getting wider use or improper use, I can make it a local or private predicate in the driver. llvm-svn: 148797
-
Chandler Carruth authored
The Driver has a fixed target, whether we like it or not, the DefaultTargetTriple is not a default. This at least makes things more honest. I'll eventually get rid of most (if not all) of DefaultTargetTriple with this proper triple object. Bit of a WIP. llvm-svn: 148796
-
David Blaikie authored
This is the last piece of N3031 (decltype in weird places) - supporting the use of decltype in a class ctor's member-initializer-list to specify the base classes to initialize. Reviewed by Richard Smith. llvm-svn: 148789
-
David Blaikie authored
This makes all sorts of fun examples work with decltype. Reviewed by Richard Smith. llvm-svn: 148787
-
David Blaikie authored
r148774, r148775, r148776, r148777 llvm-svn: 148780
-
David Blaikie authored
llvm-svn: 148777
-
David Blaikie authored
llvm-svn: 148775
-
David Blaikie authored
llvm-svn: 148774
-
Argyrios Kyrtzidis authored
llvm-svn: 148772
-
Argyrios Kyrtzidis authored
llvm-svn: 148765
-
Fariborz Jahanian authored
matches a typedef declaring an object type. // rdar://10733000 llvm-svn: 148760
-
Akira Hatanaka authored
type of pointers. llvm-svn: 148753
-
Fariborz Jahanian authored
its line. // rdar://10711037 llvm-svn: 148747
-
Akira Hatanaka authored
llvm-svn: 148744
-
- Jan 23, 2012
-
-
Sebastian Redl authored
Fix some review comments. Add a test for deduction when std::initializer_list isn't available yet. Fix redundant error messages. This fixes and outstanding FIXME too. llvm-svn: 148735
-
Argyrios Kyrtzidis authored
Sema::DiagnoseSentinelCalls() does. llvm-svn: 148722
-
Kaelyn Uhrain authored
Previously, for unqualified lookups, a positive cache hit is used as the only non-keyword correction and a negative cache hit immediately returns an empty TypoCorrection. With the new callback objects, this behavior causes false negatives by not accounting for the fact that callback objects alter the set of potential/allowed corrections. The new behavior is to seed the set of corrections with the cached correction (for positive hits) to estabilishing a baseline edit distance. Negative cache hits are only stored or used when either no callback object is provided or when it returns true for a call to ValidateCandidate with an empty TypoCorrection (i.e. when ValidateCandidate does not seem to be doing any checking of the TypoCorrection, such as when an instance of the base callback class is used solely to specify the set of keywords to be accepted). llvm-svn: 148720
-
-
Argyrios Kyrtzidis authored
without C++-specific features. Use it to set the language to C++ when indexing non-C-like structs. rdar://10732579 llvm-svn: 148708
-
Argyrios Kyrtzidis authored
of macro arguments. For "MAC1( MAC2(foo) )" and location of 'foo' token it would return "MAC1" instead of "MAC2". llvm-svn: 148704
-
Douglas Gregor authored
expression) when code-completing member access expressions. Fixes <rdar://problem/10717172>. llvm-svn: 148703
-
Douglas Gregor authored
to an error, so that users can turn them off if necessary. Note that this does *not* change the behavior of in a SFINAE context, where we still flag an error even if the warning is disabled. This matches GCC's behavior. llvm-svn: 148701
-
Nick Lewycky authored
X86 backend in LLVM. llvm-svn: 148689
-
Nico Weber authored
llvm-svn: 148683
-
Nico Weber authored
This matches cl.exe's behavior and fixes PR11791. llvm-svn: 148682
-
David Blaikie authored
Clang previously implemented -Wswitch-enum the same as -Wswitch. This patch corrects the behavior to match GCC's. The critical/only difference being that -Wswitch-enum is not silenced by the presence of a default case in the switch. llvm-svn: 148679
-
Nico Weber authored
Also change a || that I accidentally changed to && back to ||. llvm-svn: 148677
-
Nico Weber authored
MSVC2010's pair class has a move assignment operator but no explicit copy constructor, which makes it unusable without this change. For symmetry, let move copy constructors not mark the default assignment operator as deleted either. Both changes match cl.exe's behavior. Fixes pr11826. Also update the standard excerpt to point to the right paragraph. llvm-svn: 148675
-
Eli Friedman authored
llvm-svn: 148673
-