- Jan 26, 2012
-
-
Greg Clayton authored
target variable -f <format> [args] frame variable -f <format> [args] expression -f <format> -- expr llvm-svn: 149080
-
Fariborz Jahanian authored
leaves "finalize' behind and in arc mode, does not include it. This allows the migrated source to be compiled in both gc and arc mode. // rdar://10532441 llvm-svn: 149079
-
Chris Lattner authored
llvm-svn: 149078
-
Chris Lattner authored
llvm-svn: 149077
-
Chris Lattner authored
ConstantExpr::getWithOperandReplaced and ConstantExpr::replaceUsesOfWithOnConstant in terms of ConstantExpr::getWithOperands. While we're at it, make sure that ConstantExpr::getWithOperands covers all instructions: it was missing insert/extractvalue. llvm-svn: 149076
-
Chad Rosier authored
llvm-svn: 149075
-
John McCall authored
declarator just because we were able to build an invalid decl for it. The invalid-type diagnostics, in particular, are still useful to know, and may indicate something about why the decl is invalid. Also, recover from an illegal pointer/reference-to-unqualified-retainable type using __strong instead of __autoreleasing; in general, a random object is much more likely to be __strong, so this avoids unnecessary cascading errors in the most common case. llvm-svn: 149074
-
Tobias Grosser authored
This silences a clang warning. llvm-svn: 149073
-
Douglas Gregor authored
llvm-svn: 149072
-
Argyrios Kyrtzidis authored
another tag does not break C-like-ness. rdar://10756831 llvm-svn: 149071
-
Chad Rosier authored
MachineBasicBlock::canFallThrough(). We're interested in the state of the instruction (i.e., is this a barrier or not?), not if the instruction is predicable or not. rdar://10501092 llvm-svn: 149070
-
Jakob Stoklund Olesen authored
The live range of the source register may be extended when a redundant copy is eliminated. Make sure any kill flags between the two copies are cleared. This fixes PR11765. llvm-svn: 149069
-
Alexander Potapenko authored
These should fix the output tests on Mac. llvm-svn: 149068
-
Douglas Gregor authored
Objective-C class. The AST reader just throws away this data anyway! llvm-svn: 149067
-
Douglas Gregor authored
llvm-svn: 149066
-
Fariborz Jahanian authored
made symmetrical. // rdar://10734265 llvm-svn: 149065
-
Alexander Potapenko authored
More Linux-like output on Mac (to match more output tests). llvm-svn: 149064
-
Alexander Potapenko authored
Fix a bug in AsanProcMaps on Mac: on 64 bits the program was trying to read twice as many segment load commands as the binary actually contained. llvm-svn: 149063
-
Jim Grosbach authored
llvm-svn: 149062
-
Gabor Greif authored
llvm-svn: 149060
-
NAKAMURA Takumi authored
AST/ExprConstant.cpp: Silence a warning on ms cl.exe. "bool" does not prefer to be compared to integer. llvm-svn: 149059
-
Chandler Carruth authored
end up in the same output file as the layout stuff. There may even be a race condition which is causing this output to confuse the FileCheck in some cases. I actually don't know how on earth the parsing of the layout file even works given that there are diagnostics in the middle of it. ;] llvm-svn: 149058
-
James Molloy authored
Add support for the R_ARM_TARGET1 relocation, which should be given to relocations applied to all C++ constructors and destructors. This enables the linker to match concrete relocation types (absolute or relative) with whatever library or C++ support code is being linked against. llvm-svn: 149057
-
Victor Umansky authored
. "fptosi" and "fptoui" IR instructions are defined with round-to-zero rounding mode. . Currently for AVX mode for <4xdouble> and <8xdouble> the "VCVTPD2DQ.128" and "VCVTPD2DQ.256" instructions are selected (for .fp_to_sint. DAG node operation ) by AVX codegen. However they use round-to-nearest-even rounding mode. . Consequently, the conversion produces incorrect numbers. The fix is to replace selection of VCVTPD2DQ instructions with VCVTTPD2DQ instructions. The latter use truncate (i.e. round-to-zero) rounding mode. As .fp_to_sint. DAG node operation is used only for lowering of "fptosi" and "fptoui" IR instructions, the fix in X86InstrSSE.td definition file doesn.t have an impact on other LLVM flows. The patch includes changes in the .td file, LIT test for the changes and a fix in a legacy LIT test (which produced asm code conflicting with LLVN IR spec). llvm-svn: 149056
-
Douglas Gregor authored
provide the layout of records, rather than letting Clang compute the layout itself. LLDB provides the motivation for this feature: because various layout-altering attributes (packed, aligned, etc.) don't get reliably get placed into DWARF, the record layouts computed by LLDB from the reconstructed records differ from the actual layouts, and badness occurs. This interface lets the DWARF data drive layout, so we don't need the attributes preserved to get the answer write. The testing methodology for this change is fun. I've introduced a variant of -fdump-record-layouts called -fdump-record-layouts-simple that always has the simple C format and provides size/alignment/field offsets. There is also a -cc1 option -foverride-record-layout=<file> to take the output of -fdump-record-layouts-simple and parse it to produce a set of overridden layouts, which is introduced into the AST via a testing-only ExternalASTSource (called LayoutOverrideSource). Each test contains a number of records to lay out, which use various layout-changing attributes, and then dumps the layouts. We then run the test again, using the preprocessor to eliminate the layout-changing attributes entirely (which would give us different layouts for the records), but supplying the previously-computed record layouts. Finally, we diff the layouts produced from the two runs to be sure that they are identical. Note that this code makes the assumption that we don't *have* to provide the offsets of bases or virtual bases to get the layout right, because the alignment attributes don't affect it. I believe this assumption holds, but if it does not, we can extend LayoutOverrideSource to also provide base offset information. Fixes the Clang side of <rdar://problem/10169539>. llvm-svn: 149055
-
Craig Topper authored
llvm-svn: 149054
-
Craig Topper authored
llvm-svn: 149053
-
Craig Topper authored
llvm-svn: 149052
-
Eric Christopher authored
llvm-svn: 149051
-
Eric Christopher authored
gdb's tests are too dependent upon order in debug info. llvm-svn: 149050
-
Eric Christopher authored
the gdb testsuite complains too much about the ordering of items printed, even if the offsets in the debug info are correct. This reverts commit 027cb30af828f07750f9185782822297a5c57231. llvm-svn: 149049
-
Bob Wilson authored
I'm not adding a testcase because -ccc-host-triple is slated to be removed, but clang crashes if you try to use -ccc-host-triple without this fix. llvm-svn: 149048
-
Eric Christopher authored
llvm-svn: 149047
-
Greg Clayton authored
and showed a work around for when this won't. llvm-svn: 149046
-
Richard Smith authored
llvm-svn: 149045
-
Argyrios Kyrtzidis authored
llvm-svn: 149044
-
Argyrios Kyrtzidis authored
with close(); return it instead. Fixes mingw build and eliminates possible racing issues. llvm-svn: 149043
-
Anna Zaks authored
llvm-svn: 149042
-
NAKAMURA Takumi authored
llvm-svn: 149041
-
Bob Wilson authored
Revert r148249: "Make the auto-detection hack for the iOS simulator set the target triple correctly." There were some problems with this, so I'm backing it out for now. llvm-svn: 149040
-