- Jan 12, 2013
-
-
Benjamin Kramer authored
Shifting right two times will only yield zero. Should fix SingleSource/UnitTests/SignlessTypes/factor. llvm-svn: 172322
-
Arnaud A. de Grandmaison authored
llvm-svn: 172321
-
Dmitri Gribenko authored
other headers included before them. llvm-svn: 172320
-
NAKAMURA Takumi authored
MipsDisassembler.cpp: Prune DecodeHWRegs64RegisterClass() to suppress a warning. [-Wunused-function] llvm-svn: 172319
-
Benjamin Kramer authored
Found by valgrind. llvm-svn: 172318
-
Rafael Espindola authored
llvm-svn: 172317
-
Rafael Espindola authored
llvm-svn: 172316
-
NAKAMURA Takumi authored
llvm-svn: 172315
-
Rafael Espindola authored
llvm-svn: 172314
-
Benjamin Kramer authored
The folding set details can be subtle and broke twice in the last couple of weeks. llvm-svn: 172313
-
Tim Northover authored
llvm-svn: 172312
-
Jason Molenda authored
llvm-svn: 172311
-
Daniel Jasper authored
llvm-svn: 172308
-
Nico Weber authored
canBreakBefore() does not allow breaking after ':' for LT_ObjCMethodDecl lines, so if Newline is true in addTokenToState() for ':' then LT_ObjCMethodDecl cannot be set. No functionality change. llvm-svn: 172307
-
Nico Weber authored
The containing if checks for this already. No functionality change. llvm-svn: 172306
-
Rafael Espindola authored
The testcase in pr14929 shows that this is extremely hard to do. If we choose to apply the attribute, that causes the visibility of some decls to change and that can happen really late (during codegen). Current gcc warns and ignores the attribute in this testcase with a warning. This suggest that the correct solution is to find a point in the compilation where we can compute the visibility and * assert it was never computed before * reject any attempts to compute it again in the future (with warnings). llvm-svn: 172305
-
Nico Weber authored
This follows the approach suggested by djasper in PR14911: When a '[' is seen that's at the start of a line, follows a binary operator, or follows one of : [ ( return throw, that '[' and its closing ']' are marked as TT_ObjCMethodExpr and every ':' in that range that isn't part of a ternary ?: is marked as TT_ObjCMethodExpr as well. Update the layout routines to not output spaces around ':' tokens that are marked TT_ObjCMethodExpr, and only allow breaking after such tokens, not before. Before: [self adjustButton : closeButton_ ofKind : NSWindowCloseButton]; Now: [self adjustButton:closeButton_ ofKind:NSWindowCloseButton]; llvm-svn: 172304
-
Nico Weber authored
llvm-svn: 172303
-
Nico Weber authored
llvm-svn: 172302
-
Nico Weber authored
llvm-svn: 172301
-
Jason Molenda authored
AddCXXSummary in FormatManager::LoadSystemFormatters(); that function pulls in code that assumes python; can't be used without the ifdef. llvm-svn: 172300
-
Michael Gottesman authored
llvm-svn: 172299
-
Michael Gottesman authored
llvm-svn: 172298
-
Michael J. Spencer authored
This removes a bunch of llvm_unreachables and makes a File's mutability part of the type system. llvm-svn: 172297
-
rdar://problem/13001651Bob Wilson authored
I give up trying to get all of the settings into COMMON_MAKEFLAGS, so just do the easy thing and repeat the ones with interesting quoting issues in each make command. llvm-svn: 172296
-
NAKAMURA Takumi authored
llvm-svn: 172295
-
Sean Callanan authored
process's name contains spaces. Thanks to Justin Seyster for the patch. <rdar://problem/13002540> llvm-svn: 172294
-
Sean Callanan authored
evaluate expressions. The expression parser and IR interpreter are now fully capable of evaluating expressions with as much (or better) fidelity. <rdar://problem/12879364> llvm-svn: 172293
-
Rafael Espindola authored
Thanks Eli Friedman for noticing it. llvm-svn: 172292
-
Greg Clayton authored
Don't always strip the first extension from the module basename when looking for python scripts. Now we take a name like "a.b.c" and look for scripts that are "a_b_c.py", "a_b.py" and "a.py" inside the dSYM. llvm-svn: 172291
-
Douglas Gregor authored
which a particular declaration resides. Use this information to customize the "definition of 'blah' must be imported from another module" diagnostic with the module the user actually has to import. Additionally, recover by importing that module, so we don't complain about other names in that module. Still TODO: coming up with decent Fix-Its for these cases, and expand this recovery approach for other name lookup failures. llvm-svn: 172290
-
Nico Weber authored
llvm-svn: 172289
-
Michael Gottesman authored
Fixed bug in ObjCARC where we were changing a call from objc_autoreleaseRV => objc_autorelease but were not updating the InstructionClass to IC_Autorelease. llvm-svn: 172288
-
Michael Gottesman authored
Fixed a bug where we were tail calling objc_autorelease causing an object to not be placed into an autorelease pool. The reason that this occurs is that tail calling objc_autorelease eventually tail calls -[NSObject autorelease] which supports fast autorelease. This can cause us to violate the semantic gaurantees of __autoreleasing variables that assignment to an __autoreleasing variables always yields an object that is placed into the innermost autorelease pool. The fix included in this patch works by: 1. In the peephole optimization function OptimizeIndividualFunctions, always remove tail call from objc_autorelease. 2. Whenever we convert to/from an objc_autorelease, set/unset the tail call keyword as appropriate. *NOTE* I also handled the case where objc_autorelease is converted in OptimizeReturns to an autoreleaseRV which still violates the ARC semantics. I will be removing that in a later patch and I wanted to make sure that the tree is in a consistent state vis-a-vis ARC always. Additionally some test cases are provided and all tests that have tail call marked objc_autorelease keywords have been modified so that tail call has been removed. *NOTE* One test fails due to a separate bug that I am going to commit soon. Thus I marked the check line TMP: instead of CHECK: so make check does not fail. llvm-svn: 172287
-
rdar://problem/12239827Enrico Granata authored
Making a summary for std::wstring as provided by libstdc++ along with a relevant test case llvm-svn: 172286
-
Richard Smith authored
Only produce one -Wc++98-compat warning when initializing a reference from an init list with multiple elements. llvm-svn: 172285
-
Jack Carter authored
register names in the standalone assembler llvm-mc. Registers such as $A1 can represent either a 32 or 64 bit register based on the instruction using it. In addition, based on the abi, $T0 can represent different 32 bit registers. The problem is resolved by the Mips specific AsmParser td definitions changing to work together. Many cases of RegisterClass parameters are now RegisterOperand. Contributer: Vladimir Medic llvm-svn: 172284
-
Rafael Espindola authored
llvm-svn: 172283
-
rdar://problem/12239827Enrico Granata authored
Providing a data formatter for libc++ std::wstring In the process, refactoring the std::string data formatter to be written in C++ so that commonalities between the two can be exploited Also, providing a new API on the ValueObject to navigate a hierarchy by index-path Lastly, an appropriate test case is included llvm-svn: 172282
-
Jakob Stoklund Olesen authored
When tryEvict() is looking for a cheaper register in the allocation order, skip the tail of too expensive registers when possible. llvm-svn: 172281
-