- Apr 27, 2013
-
-
Dmitri Gribenko authored
Patch by Dimitry Andric llvm-svn: 180674
-
Benjamin Kramer authored
llvm-svn: 180673
-
Dmitri Gribenko authored
llvm-svn: 180672
-
Tim Northover authored
The CodeGen aspects of this test are already covered by cfi-frame.ll; making it an assembly file reduces the risk of incidental changes affecting the test. llvm-svn: 180671
-
Benjamin Kramer authored
llvm-svn: 180670
-
Benjamin Kramer authored
The existing code also failed to allocate a buffer for it so getcwd corrupted the stack. sys::fs::current_path takes care of the memory management. llvm-svn: 180669
-
Michael Gottesman authored
Mainly adding paranoid checks for the closing brace of a function to help with FileCheck error readability. Also some other minor changes. No actual CHECK changes. llvm-svn: 180668
-
Andrew Trick authored
Naturally, we should be able to pass in extra instructions, not just extra blocks. llvm-svn: 180667
-
Andrew Trick authored
This seems to me an obvious place to allow target passes to annotate memory operations. There are plenty of bits, and I'm not aware of another good way for early target passes to propagate hints along to later passes. Target independent transforms can simply preserve them, the way they preserve the other flags. Like MachineMemOperands in general, if the target flags are lost we must still generate correct code. This has lots of uses, but I want this flexibility now to make it easier to work with the new MachineTraceMetrics analysis. MachineTraceMetrics can gather a lot of information about instructions based on the surrounding code. This information can be used to influence postRA machine passes that don't work on SSA form. llvm-svn: 180666
-
Andrew Trick authored
llvm-svn: 180665
-
Sean Callanan authored
mostly related to management of the stack frame for the interpreter. - First, if the expression can be interpreted, allocate the stack frame in the target process (to make sure pointers are valid) but only read/write to the copy in the host's memory. - Second, keep the memory allocations for the stack frame and the materialized struct as member variables of ClangUserExpression. This avoids memory allocations and deallocations each time the expression runs. <rdar://problem/13043685> llvm-svn: 180664
-
Sean Callanan authored
null pointer. <rdar://problem/13745684> llvm-svn: 180663
-
Sean Callanan authored
access to 'z' where 'z' was not in scope. llvm-svn: 180662
-
Chad Rosier authored
make the gdb tests and the Windows bots happy. The Path::GetCurrentDirectory API is not equivalent to ::getcwd(), so r180652 causes a gdb tests to fail. On the other hand, <sys/param.h> isn't defined on Windows systems, so that causes Windows builds to fail. rdar://12237559 llvm-svn: 180661
-
Eric Christopher authored
to determine whether or not we're on a darwin platform for debug code emitting. Solves the problem of a module with no triple on the command line and no triple in the module using non-gdb ok features on darwin. Fix up the member-pointers test to check the correct things for cross platform (DW_FORM_flag is a good prefix). Unfortunately no testcase because I have no ideas how to test something without a triple and without a triple in the module yet check precisely on two platforms. Ideas welcome. llvm-svn: 180660
-
Eric Christopher authored
llvm-svn: 180659
-
Chad Rosier authored
llvm-svn: 180658
-
Rafael Espindola authored
This fixes pr15763. Patch by David Fang. llvm-svn: 180657
-
Manman Ren authored
llvm-svn: 180656
-
rdar://problem/12529989Enrico Granata authored
Synthetic children provider for NSOrderedSet llvm-svn: 180655
-
Manman Ren authored
We switch the order of offset and field type to make TBAAStructType node (name, parent node, offset) similar to scalar TBAA node (name, parent node). TypeIsImmutable is added to TBAAStructTag node. llvm-svn: 180654
-
Manman Ren authored
We switch the order of offset and field type to make TBAAStructType node (name, parent node, offset) similar to scalar TBAA node (name, parent node). llvm-svn: 180653
-
Chad Rosier authored
bots recover. rdar://12237559 llvm-svn: 180652
-
Argyrios Kyrtzidis authored
llvm-svn: 180651
-
Fariborz Jahanian authored
and limit comment extraction to public c++ bases. // rdar://13647476 llvm-svn: 180646
-
Sean Callanan authored
presence of malformed class types. <rdar://problem/13740646> llvm-svn: 180645
-
Sean Callanan authored
structs are compatible, check whether the fields of the structs have the same name. This prevents erroneous coalescing of (in particular) anonymous structs. llvm-svn: 180644
-
Argyrios Kyrtzidis authored
[libclang] Introduce clang_Module_getASTFile function that returns the module file where a module object came from. rdar://13743084 llvm-svn: 180643
-
Benjamin Kramer authored
llvm-svn: 180642
-
- Apr 26, 2013
-
-
Adrian Prantl authored
Clarify documentation and API to make the difference between register and register-indirect addressed locations more explicit. Put in a comment to point out that with the current implementation we cannot specify a register-indirect location with offset 0 (a breg 0 in DWARF). No functionality change intended. rdar://problem/13658587 llvm-svn: 180641
-
Jordan Rose authored
In an Objective-C for-in loop "for (id element in collection) {}", the loop will run 0 times if the collection is nil. This is because the for-in loop is implemented using a protocol method that returns 0 when there are no elements to iterate, and messages to nil will result in a 0 return value. At some point we may want to actually model this message send, but for now we may as well get the nil case correct, and avoid the false positives that would come with this case. <rdar://problem/13744632> llvm-svn: 180639
-
Jordan Rose authored
Casts to bool (and _Bool) are equivalent to checks against zero, not truncations to 1 bit or 8 bits. This improved reasoning does cause a change in the behavior of the alpha BoolAssignment checker. Previously, this checker complained about statements like "bool x = y" if 'y' was known not to be 0 or 1. Now it does not, since that conversion is well-defined. It's hard to say what the "best" behavior here is: this conversion is safe, but might be better written as an explicit comparison against zero. More usefully, besides improving our model of booleans, this fixes spurious warnings when returning the address of a local variable cast to bool. <rdar://problem/13296133> llvm-svn: 180638
-
Jordan Rose authored
llvm-svn: 180637
-
Daniel Malea authored
llvm-svn: 180636
-
Argyrios Kyrtzidis authored
[PCH/modules] Require the preprocessing record option to match the used PCH, if modules are enabled. The preprocessing record becomes important when modules are enabled, since it is used to calculate the module cache hash. llvm-svn: 180635
-
Argyrios Kyrtzidis authored
[Modules] Fix an issue where the reconstructed redeclaration chain was incomplete, missing the definition from a module. -Make sure that a deserialized external decl gets added to the TU scope. -When associating an identifier with a set of decls, use the most recent local ones, if they exist, otherwise associating decls from modules (that came after a local one) will lead to an incomplete reconstructed re-declaration chain. rdar://13712705 llvm-svn: 180634
-
Argyrios Kyrtzidis authored
llvm-svn: 180633
-
Benjamin Kramer authored
llvm-svn: 180632
-
Bill Wendling authored
TLVs probably won't be as common as the other types of variables. Check for them last before defaulting to "DATA". llvm-svn: 180631
-
Benjamin Kramer authored
Hopefully brings the windows buildbots back to life. llvm-svn: 180630
-