summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add display of a static int variable to the test scenario.Johnny Chen2011-07-132-0/+7
| | | | llvm-svn: 135016
* Assign variable before we test it.Bill Wendling2011-07-131-2/+1
| | | | llvm-svn: 135015
* Fix obvious think-o.Bill Wendling2011-07-131-1/+1
| | | | llvm-svn: 135014
* Clean up the handling of an EBP/RBP unwind frame pointer. In particular, don'tBill Wendling2011-07-131-23/+26
| | | | | | | | assert when the frame pointer is -1 (i.e., the function is "frameless"). Still to do: "frameless" unwind information. llvm-svn: 135013
* fixing missing RefCounter classEnrico Granata2011-07-133-88/+289
| | | | llvm-svn: 135012
* Correctly set up the list of virtual base classes for a CXXRecordDecl. ↵Richard Smith2011-07-121-16/+2
| | | | | | Previously we got the source range wrong for everything in the virtual bases list. llvm-svn: 135011
* revert fix for // rdar://9740328Fariborz Jahanian2011-07-122-1/+2
| | | | llvm-svn: 135010
* Add a test case to exercise 'target variable' command before and after ↵Johnny Chen2011-07-122-4/+55
| | | | | | | | | | running the inferior. Currently it fails after the inferior is run. rdar://problem/9763907 llvm-svn: 135009
* test casesEnrico Granata2011-07-123-0/+361
| | | | llvm-svn: 135008
* smarter summary strings:Enrico Granata2011-07-129-78/+275
| | | | | | | | | - formats %s %char[] %c and %a now work to print 0-terminated c-strings if they are applied to a char* or char[] even without the [] operator (e.g. ${var%s}) - array formats (char[], intN[], ..) now work when applied to an array of a scalar type even without the [] operator (e.g. ${var%int32_t[]}) LLDB will not crash because of endless loop when trying to obtain a summary for an object that has no value and references itself in its summary string In many cases, a wrong summary string will now display an "<error>" message instead of giving out an empty string llvm-svn: 135007
* There is a cyclic dependency between MC and Target if this method is ↵Bill Wendling2011-07-122-7/+4
| | | | | | out-of-line. llvm-svn: 135006
* Fix short description of 'target variable' command.Johnny Chen2011-07-121-2/+2
| | | | llvm-svn: 135005
* Revert r134946Bruno Cardoso Lopes2011-07-122-10/+3
| | | | llvm-svn: 135004
* [arcmt] Also avoid 'weak' for forward references to objc classes.Argyrios Kyrtzidis2011-07-123-4/+12
| | | | llvm-svn: 135003
* [arcmt] Before applying '__weak' check whether the objc class is annotated ↵Argyrios Kyrtzidis2011-07-126-18/+108
| | | | | | | | | | with objc_arc_weak_reference_unavailable or is in a list of classes not supporting 'weak'. rdar://9489367. llvm-svn: 135002
* objc++: Some level of covariance is allowed in ObjC properties.Fariborz Jahanian2011-07-124-1/+25
| | | | | | Make it also available in ObjC++ propeties. // rdar://9740328 llvm-svn: 135001
* Remove the const from Type after of Jay deconstify work.Francois Pichet2011-07-121-1/+1
| | | | llvm-svn: 135000
* Fix another typo (int -> id for captured_obj).David Chisnall2011-07-121-1/+1
| | | | llvm-svn: 134998
* Generalize Cleanup::Emit's "isForEH" parameter into a setJohn McCall2011-07-1212-54/+89
| | | | | | of flags. No functionality change. llvm-svn: 134997
* Implement -MG. Fixes PR9613Peter Collingbourne2011-07-1210-9/+64
| | | | llvm-svn: 134996
* Add more compiler workarounds. Should fix the build with old GCCs and MSVC.Benjamin Kramer2011-07-121-6/+10
| | | | llvm-svn: 134995
* Delete StructType bodies when destroying a StructType.Benjamin Kramer2011-07-121-0/+4
| | | | | | Leak found by valgrind. llvm-svn: 134994
* In ARC mode, consider Objective-C lifetime types (object pointers andDouglas Gregor2011-07-125-8/+29
| | | | | | | | | | | | | | block pointers) that don't have any qualification to be POD types. We were previously considering them to be non-POD types, because this was convenient in C++ for is_pod-like traits. However, we now end up inferring lifetime in such cases (template arguments infer __strong), so it is not necessary. Moreover, we want rvalues of object type (which have their lifetime stripped) to be PODs to allow, e.g., va_arg(arglist, id) to function properly. Fixes <rdar://problem/9758798>. llvm-svn: 134993
* Fix a bug where a local variable named 'self' is causingFariborz Jahanian2011-07-128-32/+28
| | | | | | | implicit ivar accesses to go through the 'self' variable rather than the real 'self' for the method. // rdar://9730771 llvm-svn: 134992
* MemAccess: Reading Change in Access FunctionRaghesh Aloor2011-07-129-0/+171
| | | | | | | This patch reads the change in access functions from imported JSCOP file. A test case is also added. llvm-svn: 134991
* Added the ability to _not_ skip the prologue when settings breakpoints Greg Clayton2011-07-129-64/+253
| | | | | | | | | | | | | | by name by adding an extra parameter to the lldb_private::Target breakpoint setting functions. Added a function in the DWARF symbol file plug-in that can dump errors and prints out which DWARF file the error is happening in so we can track down what used to be assertions easily. Fixed the MacOSX kernel plug-in to properly read the kext images and set the kext breakpoint to watch for kexts as they are loaded. llvm-svn: 134990
* Ugh, use this compiler workaround again.John McCall2011-07-121-3/+5
| | | | llvm-svn: 134989
* Switch field destruction over to use the new destroyer-based APIJohn McCall2011-07-128-408/+200
| | | | | | and kill a lot of redundant code. llvm-svn: 134988
* Add check for predicate w/o S bit.Jim Grosbach2011-07-121-0/+2
| | | | llvm-svn: 134987
* Improve test cases from r134746.Jim Grosbach2011-07-122-5/+21
| | | | | | | Use memory barriers to force if-conversion off for these tests instead of the internal llc command line option ifcvt-limit. llvm-svn: 134986
* Reverted 134901 because of 134959. Did not use svn merge -r but rather:Garrison Venn2011-07-121-24/+24
| | | | | | | | | | | | | 1,$s/llvm::Type::getInt\(..\)Ty(builder.getContext())/builder.getInt\1Ty()/g 1,$s/builder.getInt\(..*\)Ty()->getPointerTo()/builder.getInt\1PtrTy()/g vi sub commands (second one was not a reversion but requested by Tobias Grosser. Mod was tested, but other examples have failed to build as they are currently being thrashed with the const qualifier removal change. llvm-svn: 134985
* Improve name mangling for instantiation-dependent types that are notDouglas Gregor2011-07-124-15/+87
| | | | | | | | | | | | | | | | | | | | | | | | | dependent. This covers an odd class of types such as int (&)[sizeof(sizeof(T() + T()))]; which involve template parameters but, because of some trick typically involving a form of expression that is never type-dependent, resolve down to a non-dependent type. Such types need to be mangled essentially as they were written in the source code (involving template parameters), rather than via their canonical type. In general, instantiation-dependent types should be mangled as they were written in the source. However, since we can't do that now without non-trivial refactoring of the AST (see the new FIXME), I've gone for this partial solution: only use the as-written-in-the-source mangling for these strange types that are instantiation-dependent but not dependent. This provides better compatibility with previous incarnations of Clang and with GCC. In the future, we'd like to get this right. Fixes <rdar://problem/9663282>. llvm-svn: 134984
* Pop block scope after reading from it.Benjamin Kramer2011-07-121-4/+4
| | | | | | Found by valgrind. llvm-svn: 134983
* Second attempt at de-constifying LLVM Types in FunctionType::get(),Jay Foad2011-07-1237-160/+133
| | | | | | StructType::get() and TargetData::getIntPtrType(). llvm-svn: 134982
* www: Fix typoTobias Grosser2011-07-121-1/+1
| | | | llvm-svn: 134981
* Adapt to LLVM type system changesTobias Grosser2011-07-124-21/+24
| | | | | | | Remove constness of Types and do not name the structures generated in the OpenMP code. llvm-svn: 134980
* VectorType is also a SequentialTypeTobias Grosser2011-07-121-1/+1
| | | | llvm-svn: 134979
* Remove IntegerType constness from TargetDataTobias Grosser2011-07-122-2/+2
| | | | llvm-svn: 134978
* Work around a problem with a static helper's formulation in releaseChandler Carruth2011-07-121-5/+5
| | | | | | | | | | | | | | | builds introduced in r134972: lib/CodeGen/CGExpr.cpp:1294:7: error: no matching function for call to 'EmitBitCastOfLValueToProperType' lib/CodeGen/CGExpr.cpp:1278:1: note: candidate function not viable: no known conversion from 'CGBuilderTy' (aka 'IRBuilder<false>') to 'llvm::IRBuilder<> &' for 1st argument This fixes the issue by passing CodeGenFunction on down, and using its builder directly rather than passing just the builder down. This may not be the best / cleanest fix, Chris please review. It at least fixes builds. llvm-svn: 134977
* Fix typo correction crash on overloaded functions, pr10283.Hans Wennborg2011-07-123-3/+15
| | | | | | | It would be cool if we could do overload resolution to suggest the right function, but at least this fixes the crashing. llvm-svn: 134976
* Fix the BrainF build.Francois Pichet2011-07-121-1/+1
| | | | llvm-svn: 134975
* Implement name mangling for sizeof...(function parameter pack).Douglas Gregor2011-07-122-9/+12
| | | | llvm-svn: 134974
* Fix the desugaring of dependent decltype and typeof(expr) nodes. TheDouglas Gregor2011-07-122-10/+20
| | | | | | | | | | isSugared() and desugar() routines previously provided were never actually called, since the corresponding types (DependentTypeOfExprType, DependentDecltypeType) don't have corresponding type classes. Outside of the current (incomplete) patch I'm working on, I haven't found a way to trigger this problem. llvm-svn: 134973
* Fix a problem Eli ran into where we now reject incomplete arrays of Chris Lattner2011-07-123-9/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | uncompleted struct types. We now do what llvm-gcc does and compile them into [i8 x 0]. If the type is later completed, we make sure that it is appropriately cast. We compile the terrible example to something like this now: %struct.A = type { i32, i32, i32 } @g = external global [0 x i8] define void @_Z1fv() nounwind { entry: call void @_Z3fooP1A(%struct.A* bitcast ([0 x i8]* @g to %struct.A*)) ret void } declare void @_Z3fooP1A(%struct.A*) define %struct.A* @_Z2f2v() nounwind { entry: ret %struct.A* getelementptr inbounds ([0 x %struct.A]* bitcast ([0 x i8]* @g to [0 x %struct.A]*), i32 0, i64 1) } llvm-svn: 134972
* insert a bitcast in the 'expand' case of argument passing when needed. ThisChris Lattner2011-07-122-29/+40
| | | | | | fixes the -m32 build of oggenc. llvm-svn: 134971
* fix an unintended behavior change in the type system rewrite, which caused ↵Chris Lattner2011-07-128-18/+18
| | | | | | | | | | | | | | | | | | | | | us to compile stuff like this: typedef struct { int x, y, z; } foo_t; foo_t g; into: %"struct.<anonymous>" = type { i32, i32, i32 } we now get: %struct.foo_t = type { i32, i32, i32 } This doesn't change the behavior of the compiler, but makes the IR much easier to read. llvm-svn: 134969
* simplify assertions to not be completely redundant.Chris Lattner2011-07-121-15/+2
| | | | llvm-svn: 134968
* Mangle dependent template names of unknown arityDouglas Gregor2011-07-122-10/+17
| | | | llvm-svn: 134967
* fix PR10335 by watching out for IR type compatibility in call argument lists.Chris Lattner2011-07-122-3/+19
| | | | llvm-svn: 134966
* Move OBJC_PR_NumBits out of PropertyAttributeKind enum, to its own ↵Argyrios Kyrtzidis2011-07-121-4/+7
| | | | | | | | NumPropertyAttrsBits. No functionality change. llvm-svn: 134965
OpenPOWER on IntegriCloud