- Sep 02, 2012
-
-
Jordan Rose authored
All clients of BasicValueFactory should be using QualTypes instead, and indeed it seems they are. This caught the (fortunately harmless) bug fixed in the previous commit. No intended functionality change. llvm-svn: 163069
-
Jordan Rose authored
The current logic would actually create a float- or double-sized signed integer value of 1, which is not at all the same. No test because the value would be swallowed by an Unknown as soon as it gets added or subtracted to the original value, but it enables the cleanup in the next patch. llvm-svn: 163068
-
Jordan Rose authored
Any future exceptions need to go INSIDE the test that checks if the IdentifierInfo is non-null! No functionality change. Thanks for the review, Ted. llvm-svn: 163067
-
Jordan Rose authored
This allows us to correctly symbolicate the fields of structs returned by value, as well as get the proper 'this' value for when methods are called on structs returned by value. This does require a moderately ugly hack in the StoreManager: if we assign a "struct value" to a struct region, that now appears as a Loc value being bound to a region of struct type. We handle this by simply "dereferencing" the struct value region, which should create a LazyCompoundVal. This should fix recent crashes analyzing LLVM and on our internal buildbot. <rdar://problem/12137950> llvm-svn: 163066
-
Jordan Rose authored
Previously, we preferred to get a result type by looking at the callee's declared result type. This allowed us to handlereferences, which are represented in the AST as lvalues of their pointee type. (That is, a call to a function returning 'int &' has type 'int' and value kind 'lvalue'.) However, this results in us preferring the original type of a function over a casted type. This is a problem when a function pointer is casted to another type, because the conjured result value will have the wrong type. AdjustedReturnValueChecker is supposed to handle this, but still doesn't handle the case where there is no "original function" at all, i.e. where the callee is unknown. Now, we instead look at the call expression's value kind (lvalue, xvalue, or prvalue), and adjust the expr's type accordingly. This will have no effect when the function is inlined, and will conjure the value that will actually be used when it is not. This makes AdjustedReturnValueChecker /nearly/ unnecessary; unfortunately, the cases where it would still be useful are where we need to cast the result of an inlined function or a checker-evaluated function, and in these cases we don't know what we're casting /from/ by the time we can do post- call checks. In light of that, remove AdjustedReturnValueChecker, which was already not checking quite a few calls. llvm-svn: 163065
-
Pete Cooper authored
Revert "Take account of boolean vector contents when promoting a build vector from i1 to some other type. rdar://problem/12210060" This reverts commit 5dd9e214fb92847e947f9edab170f9b4e52b908f. Thanks to Duncan for explaining how this should have been done. Conflicts: test/CodeGen/X86/vec_select.ll llvm-svn: 163064
-
- Sep 01, 2012
-
-
Logan Chien authored
llvm-svn: 163063
-
Logan Chien authored
llvm-svn: 163062
-
Logan Chien authored
Remove unused local variable. llvm-svn: 163061
-
Dmitry Vyukov authored
llvm-svn: 163060
-
Logan Chien authored
llvm-svn: 163059
-
Benjamin Kramer authored
llvm-svn: 163058
-
Tobias Grosser authored
The helper allows us to define how the initialization of functions should behave. We use this patch to provide an informative error message, in case a function is not available: "LibclangError: /home/grosser/Projekte/llvm/install/lib/libclang.so: undefined symbol: clang_method_added_in_2020. Please ensure that your python bindings are compatible with your libclang.so version." This patch also ensures that no spelling mistakes slip into the library initialization. At the moment, there are a couple of 'argtype' -> 'argtypes' mispellings that have been overlooked. llvm-svn: 163057
-
Ted Kremenek authored
llvm-svn: 163056
-
Ted Kremenek authored
llvm-svn: 163055
-
NAKAMURA Takumi authored
llvm-svn: 163054
-
Craig Topper authored
llvm-svn: 163053
-
Ted Kremenek authored
llvm-svn: 163052
-
Owen Anderson authored
llvm-svn: 163051
-
Ted Kremenek authored
This is similar to how we divide up the StaticAnalyzer libraries to separate core functionality to what is clearly associated with Frontend actions. llvm-svn: 163050
-
Michael Liao authored
llvm-svn: 163049
-
Jim Ingham authored
Initial check-in of "fancy" inlined stepping. Doesn't do anything useful unless you switch LLDB_FANCY_INLINED_STEPPING to true. With that on, basic inlined stepping works, including step-over of inlined functions. But for some as yet mysterious reason i386 debugging gets an assert and dies immediately. So for now its off. llvm-svn: 163044
-
Greg Clayton authored
Added the ability for OptionValueString objects to take flags. The only flag is currently for parsing escape sequences. Not the prompt string can have escape characters translate which will allow colors in the prompt. Added functions to Args that will parse the escape sequences in a string, and also re-encode the escape sequences for display. This was looted from other parts of LLDB (the Debugger::FormatString() function). llvm-svn: 163043
-
rdar://problem/12069589Greg Clayton authored
Fixed an issue where not all text would always be seen when running any of the functions in heap.py in Xcode. Now we put the text directly into the command result object and skip STDIO since we have issues with STDIO right now in python scripts. Also fixed an issue with the "--stack-history" option where MallocStackLoggingNoCompact was assumed to have to be enabled... It doesn't, just MallocStackLogging. llvm-svn: 163042
-
NAKAMURA Takumi authored
llvm-svn: 163041
-
Manman Ren authored
llvm-svn: 163040
-
Joao Matos authored
llvm-svn: 163039
-
Jim Ingham authored
Add a convenience function to get the range containing a given PC specified as load address + Target. llvm-svn: 163038
-
Jason Molenda authored
llvm-svn: 163037
-
Manman Ren authored
output chain is correctly setup. As an example, if the original load must happen before later stores, we need to make sure the constructed VZEXT_LOAD is constrained to be before the stores. rdar://11457792 llvm-svn: 163036
-
Craig Topper authored
llvm-svn: 163035
-
Chris Lattner authored
don't warn about unused values when the unused value is a statement expression expanded from a macro. This is of dubious utility in general, but is specifically a major issue for the linux kernel. This resolves PR13747. llvm-svn: 163034
-
Eric Christopher authored
Patch by Brad Smith! llvm-svn: 163033
-
Joao Matos authored
llvm-svn: 163032
-
Benjamin Kramer authored
While there fix a dead assert. llvm-svn: 163031
-
Chad Rosier authored
function nowadays. llvm-svn: 163030
-
Craig Topper authored
llvm-svn: 163029
-
DeLesley Hutchins authored
latest definition of a function is always used when computing lock expressions. llvm-svn: 163028
-
Richard Trieu authored
instead of referring to the flag name. llvm-svn: 163027
-
DeLesley Hutchins authored
expressions, which should be ignored right now. llvm-svn: 163026
-