- Oct 25, 2010
-
-
Rafael Espindola authored
llvm-svn: 117280
-
Owen Anderson authored
llvm-svn: 117279
-
Johnny Chen authored
llvm-svn: 117278
-
Owen Anderson authored
llvm-svn: 117277
-
Owen Anderson authored
llvm-svn: 117276
-
Rafael Espindola authored
llvm-svn: 117275
-
Owen Anderson authored
llvm-svn: 117274
-
Owen Anderson authored
llvm-svn: 117273
-
Jakob Stoklund Olesen authored
llvm-svn: 117272
-
David Chisnall authored
Only warn for mismatched types in Objective-C methods when they are incompatible, not when they are simply different. Now we test whether the difference in types breaks the principle of substitutability, rather than whether they are different. A common idiom in Objective-C is to provide a definition of a method in a subclass that returns a more-specified version of an object than the superclass. This does not violate the principle of substitutability, because you can always use the object returned by the subclass anywhere that you could use the type returned by the superclass. It was, however, generating warnings with clang, leading people to believe that semantically correct code was incorrect and requiring less accurate type specification and explicit down-casts (neither of which is a good thing to encourage). This change ensures that any method definition has parameter and return types that make it accept anything that something conforming to the declaration may pass and return something that the caller will expect, but allows stricter definitions. llvm-svn: 117271
-
Owen Anderson authored
llvm-svn: 117270
-
Owen Anderson authored
llvm-svn: 117269
-
Dan Gohman authored
llvm-svn: 117268
-
Charles Davis authored
llvm-svn: 117267
-
Dan Gohman authored
llvm-svn: 117266
-
Dan Gohman authored
from stores when folding in bitcasts. llvm-svn: 117265
-
Charles Davis authored
instruction at the beginning of each function that has the attribute, allowing the function to be easily hooked and/or patched. llvm-svn: 117264
-
Tobias Grosser authored
Contributed by: ether llvm-svn: 117263
-
Duncan Sands authored
Rather than rename this instance, use the cast-to-void idiom instead. This will hopefully fix the windows buildbots. llvm-svn: 117262
-
Duncan Sands authored
smooshlab build. The breakage seems to be due to a collision between LLVM's ATTRIBUTE_UNUSED and gcc's which was previously hidden due to header files being included in a lucky order. llvm-svn: 117260
-
Jason Molenda authored
Not yet enabled as the default unwinder but there are no known backtrace problems with the code at this point. Added 'log enable lldb unwind' to help diagnose backtrace problems; this output needs a little refining but it's a good first step. eh_frame information is currently read unconditionally - the code is structured to allow this to be delayed until it's actually needed. There is a performance hit when you have to parse the eh_frame information for any largeish executable/library so it's necessary to avoid if possible. It's confusing having both the UnwindPlan::RegisterLocation struct and the RegisterConextLLDB::RegisterLocation struct, I need to rename one of them. The writing of registers isn't done in the RegisterConextLLDB subclass yet; neither is the running of complex DWARF expressions from eh_frame (e.g. used for _sigtramp on Mac OS X). llvm-svn: 117256
-
Kalle Raiskila authored
llvm-svn: 117255
-
Chandler Carruth authored
This adds them where missing, and traces them through PCH. We fix at least one bug in the extents found by the Index library, and make a lot of refactoring tools which care about the exact formulation of a constructor call easier to write. Also some minor cleanups to more consistently follow the friend pattern instead of the setter pattern when rebuilding a serialized AST. Patch originally by Samuel Benzaquen. llvm-svn: 117254
-
Marcin Swiderski authored
There's only one destructor call generated for each not empty array (at least for now this should be enough). llvm-svn: 117252
-
Marcin Swiderski authored
There's only one destructor call generated for each not empty array (at least for now this should be enough). llvm-svn: 117251
-
Sean Callanan authored
Specifically, we fixed handling of the objc_class built-in type, which allowed us to pass named Objective-C objects to functions, call variable list -t on objects safely, etc. llvm-svn: 117249
-
- Oct 24, 2010
-
-
Sean Callanan authored
"unsigned short." As discussed in the comments, this is pending a better solution to the problem of types not in the debug information but readily available through headers. llvm-svn: 117247
-
Jakob Stoklund Olesen authored
llvm-svn: 117245
-
Wesley Peck authored
llvm-svn: 117244
-
Peter Collingbourne authored
as a function argument, one of the types is a transparent union type and the other type is compatible with a union member llvm-svn: 117243
-
Rafael Espindola authored
we check for _GLOBAL_OFFSET_TABLE_. llvm-svn: 117241
-
Argyrios Kyrtzidis authored
llvm-svn: 117240
-
Argyrios Kyrtzidis authored
In that case a chained PCH will record the updates to the DefinitionData pointer of forward references. If a forward reference mutated into a definition re-write it into the chained PCH, this is too big of a change. llvm-svn: 117239
-
Argyrios Kyrtzidis authored
Introduce a DeclsToRewrite field in ASTWrite, used for collecting the decls that will be replaced in the chained PCH. llvm-svn: 117238
-
Argyrios Kyrtzidis authored
llvm-svn: 117237
-
Argyrios Kyrtzidis authored
- Pass around RecordDataImpl instead of the concrete RecordData so that any SmallVector can be used. - Move ASTDeclWriter::WriteCXXDefinitionData to ASTWriter::AddCXXDefinitionData. llvm-svn: 117236
-
Argyrios Kyrtzidis authored
its initial creation/deserialization and store the changes in a chained PCH. The idea is that the AST entities call methods on the ASTMutationListener to give notifications of changes; the PCHWriter implements the ASTMutationListener interface and stores the incremental changes of the updated entity. WIP llvm-svn: 117235
-
Argyrios Kyrtzidis authored
Simplify and "robust-ify" the way that CXXRecord references point to the definition data when loaded from PCH. Temporary disable 'test/PCH/chain-cxx.cpp' until a better way to fix it is in place. llvm-svn: 117234
-
Argyrios Kyrtzidis authored
llvm-svn: 117233
-
Chris Lattner authored
llvm-svn: 117232
-