- Dec 18, 2011
-
-
Michael J. Spencer authored
llvm-svn: 146844
-
Richard Smith authored
floating literal value does not fit into the destination type. Such casts have undefined behavior at translation time; treating them as non-ICE matches the behavior of modern gcc versions. llvm-svn: 146842
-
Douglas Gregor authored
chains. The previous implementation relied heavily on the declaration chain being stored as a (circular) linked list on disk, as it is in memory. However, when deserializing from multiple modules, the different chains could get mixed up, leading to broken declaration chains. The new solution keeps track of the first and last declarations in the chain for each module file. When we load a declaration, we search all of the module files for redeclarations of that declaration, then splice together all of the lists into a coherent whole (along with any redeclarations that were actually parsed). As a drive-by fix, (de-)serialize the redeclaration chains of TypedefNameDecls, which had somehow gotten missed previously. Add a test of this serialization. This new scheme creates a redeclaration table that is fairly large in the PCH file (on the order of 400k for Cocoa.h's 12MB PCH file). The table is mmap'd in and searched via a binary search, but it's still quite large. A future tweak will eliminate entries for declarations that have no redeclarations anywhere, and should drastically reduce the size of this table. llvm-svn: 146841
-
Chandler Carruth authored
especially nice as the Windows toolchain needs the windows header files, and has lots of platform specific hooks in it. To facilitate the split, hoist a bunch of file-level static helpers into class-level static helpers. Spiff up their doxygen comments while there as they're now more likely to be looked up via docs. Hopefully, this will be followed by further breaking apart of the toolchain definitions. Most of the large and complex ones should likely live on their own. I'm looking at you Darwin. ;] llvm-svn: 146840
-
- Dec 17, 2011
-
-
Chandler Carruth authored
have this warning. llvm-svn: 146839
-
Chad Rosier authored
internal nightly testers. Original commit message: By popular demand, link up types by name if they are isomorphic and one is an autorenamed version of the other. This makes the IR easier to read, because we don't end up with random renamed versions of the types after LTO'ing a large app. llvm-svn: 146838
-
Chandler Carruth authored
flags on MIPS paltforms. llvm-svn: 146837
-
Ted Kremenek authored
llvm-svn: 146836
-
Craig Topper authored
llvm-svn: 146835
-
Kevin Enderby authored
Hope I did this correctly :) llvm-svn: 146834
-
Craig Topper authored
llvm-svn: 146833
-
Benjamin Kramer authored
llvm-svn: 146831
-
NAKAMURA Takumi authored
It had been causing test "Misc/diag-verify.cpp" failure on ms cl.exe. The emission was ordered unexpectedly as below; First) error: 'error' diagnostics seen but not expected: Second) error: 'error' diagnostics expected but not seen: llvm-svn: 146830
-
Michael J. Spencer authored
llvm-svn: 146829
-
Michael J. Spencer authored
llvm-svn: 146828
-
Chandler Carruth authored
make VariadicFunction actually be trivial. Do so, and also make it look more like your standard trivial functor by making it a struct with no access specifiers. The unit test is updated to initialize its functors properly. llvm-svn: 146827
-
Argyrios Kyrtzidis authored
No functionality change. llvm-svn: 146825
-
Argyrios Kyrtzidis authored
over them because more interesting decls can be added during body deserialization. Should fix msvc build tests. llvm-svn: 146824
-
Pete Cooper authored
SimplifyCFG now predicts some conditional branches to true or false depending on previous branch on same comparison operands. For example, if (a == b) { if (a > b) // this is false Fixes some of the issues on <rdar://problem/10554090> llvm-svn: 146822
-
Manuel Klimek authored
llvm-svn: 146821
-
Ted Kremenek authored
Refactor SerializeDiagnosticsPrinter to using DiagnosticRenderer. This gives us comparative diagnostics to TextDiagnosticPrinter. This certainly can be cleaned up a bit. llvm-svn: 146820
-
Ted Kremenek authored
the policy of how diagnostics are lowered/rendered, while TextDiagnostic handles the actual pretty-printing. This is a first part of reworking SerializedDiagnosticPrinter to use the same inclusion-stack/macro-expansion logic as TextDiagnostic. llvm-svn: 146819
-
Argyrios Kyrtzidis authored
macro expansion. rdar://10588825 llvm-svn: 146818
-
Argyrios Kyrtzidis authored
including deserializing their bodies, so that any other declarations that get referenced in the body will be fully deserialized by the time we pass them to the consumer. Could not reduce to a test case unfortunately. rdar://10587158. llvm-svn: 146817
-
Argyrios Kyrtzidis authored
when we formed an invalid redeclaration chain due to a bug. Thanks to Doug for the hint! llvm-svn: 146816
-
Argyrios Kyrtzidis authored
Stopping at '@' was originally intended to avoid skipping an '@' at the @interface context when doing parser recovery, but we should not stop at all '@' tokens because they may be part of expressions (e.g. in @"string", @selector(), etc.), so in most cases we will want to skip them. This commit caused 'test/Parser/method-def-in-class.m' to fail for the cases where we tried to recover from unmatched angle bracket but IMO it is not a big deal to not have good recovery from such broken code and the way we did recovery would not always work anyway (e.g. if there was '@' in an expression). The case that rdar://7029784 is about still passes. llvm-svn: 146815
-
Argyrios Kyrtzidis authored
because the memory associated with them is going to get released. We also don't want them to affect later parsing. (We do the same for C++ inline methods.) The underlying cause for the leftover tokens is going to be addressed in the next commit. Couldn't get a test case for the crash though. rdar://10583033. llvm-svn: 146814
-
Eli Friedman authored
llvm-svn: 146813
-
Johnny Chen authored
SBThread::GetStopReasonDataCount/GetStopReasonDataAtIndex() need to handle eStopReasonWatchpoint. llvm-svn: 146812
-
Sean Callanan authored
build script that applies any local patches to LLVM/Clang. llvm-svn: 146811
-
Chad Rosier authored
markings. Fix avxintrin.h to take them into account. Part of rdar://10595450 llvm-svn: 146810
-
Sean Callanan authored
and debugserver-156. llvm-svn: 146808
-
Chad Rosier authored
first place. The permutevar_* (note the *var*) intrinsics use ymm/mem. llvm-svn: 146807
-
Jim Ingham authored
as part of the thread format output. Currently this is only done for the ThreadPlanStepOut. Add a convenience API ABI::GetReturnValueObject. Change the ValueObject::EvaluationPoint to BE an ExecutionContextScope, rather than trying to hand out one of its subsidiary object's pointers. That way this will always be good. llvm-svn: 146806
-
Evan Cheng authored
llvm-svn: 146805
-
Chad Rosier authored
avxintrin.h to take them into account. Part of rdar://10595450 llvm-svn: 146804
-
Pete Cooper authored
This will be used by SimplifyCfg in a later commit. llvm-svn: 146803
-
Greg Clayton authored
which have the dwarf DIE tag (DW_TAG_XXX enum) and TypeFlags for each type. llvm-svn: 146802
-
Rafael Espindola authored
asm parsing and testcase. llvm-svn: 146801
-
Lang Hames authored
llvm-svn: 146800
-