- Dec 05, 2013
-
-
Reid Kleckner authored
Most people are using MSVC 2012, which lacks the <initializer_list> header. MSVC 2013 shipped with that header, but it has not yet been tested. If clang works with the 2013 header, then we can enable this by checking the value of _MSC_VER. llvm-svn: 196448
-
Will Dietz authored
llvm-svn: 196447
-
David Blaikie authored
DIEs already contain references directly to their DIEAbbrev, use that instead of looking it up based on index. llvm-svn: 196446
-
David Blaikie authored
llvm-svn: 196445
-
Eric Christopher authored
changes. llvm-svn: 196444
-
Richard Smith authored
nested-name-specifier, rather than crashing. (In fact, reject all literal-operator-ids that have a non-namespace nested-name-specifier). The grammar doesn't allow these in some cases, and in other cases does allow them but instantiation will always fail. llvm-svn: 196443
-
Eric Christopher authored
llvm-svn: 196442
-
Eric Christopher authored
values with the correct behavior. llvm-svn: 196441
-
Logan Chien authored
ELF_Other_Weakref and ELF_Other_ThumbFunc seems to be LLVM internal ELF symbol flags. These should not be emitted to object file. This commit defines ELF_STO_Shift for the target-defined flags for st_other, and increase the value of ELF_Other_Shift to 16. llvm-svn: 196440
-
Lang Hames authored
ScalarSafeChars array in Output::scalarString (See YAMLTraits.cpp line 554 as of r196428), this test will fail: The path will be single quoted to preserve the 'unsafe' characters, which doesn't match the expected (unquoted) output. Notionally "unsafe" characters include fairly innocuous ones like the '+' symbol (I don't know enough YAML to be sure, but I suspect '+' doesn't really need to be quoted). I have added some sed lines to strip leading spaces, and leading and trailing single quote (') characters from the path. That should make this test slightly more robust. If possible, this test should be rewritten to use FileCheck, rather than diffing against expected output - the latter is likely to brittle, and require further sed goop in the future. llvm-svn: 196439
-
Michael Ilseman authored
We were previously not adding fast-math flags through CreateBinOp() when it happened to be making a floating point binary operator. This patch updates it to do so similarly to directly calling CreateF*(). llvm-svn: 196438
-
Eric Christopher authored
llvm-svn: 196437
-
Nick Kledzik authored
llvm-svn: 196436
-
Cameron McInally authored
Patch by Aleksey Bader. llvm-svn: 196435
-
Eric Christopher authored
llvm-svn: 196434
-
David Blaikie authored
Code review feedback on r196394 by Paul Robinson. llvm-svn: 196433
-
Kevin Enderby authored
Where it would use a scattered relocation entry but falls back to a normal relocation entry because the FixupOffset is more than 24-bits. The bug is in the X86MachObjectWriter::RecordScatteredRelocation() where it changes reference parameter FixedValue but then returns false to indicate it did not create a scattered relocation entry. The fix is simply to save the original value of the parameter FixedValue at the start of the method and restore it if we are returning false in that case. rdar://15526046 llvm-svn: 196432
-
Eric Christopher authored
llvm-svn: 196431
-
Eric Christopher authored
llvm-svn: 196430
-
Aaron Ballman authored
Giving a Subjects list to DllExport, which allows the removal of some custom semantic handling. The same cannot be done for DllImport, and so comments were left explaining why. llvm-svn: 196429
-
Aaron Ballman authored
Common functionality is already checked within SemaDeclAttr.cpp and so it does not need to be re-checked for each target. llvm-svn: 196428
-
Eric Christopher authored
llvm-svn: 196427
-
- Dec 04, 2013
-
-
Eric Christopher authored
llvm-svn: 196426
-
Reid Kleckner authored
Fixes the relevant FIXME about copy-pasted code. llvm-svn: 196425
-
David Peixotto authored
ARM symbol variants are written with parens instead of @ like this: .word __GLOBAL_I_a(target1) This commit adds support for parsing these symbol variants in expressions. We introduce a new flag to MCAsmInfo that indicates the parser should use parens to parse the symbol variant. The expression parser is modified to look for symbol variants using parens instead of @ when the corresponding MCAsmInfo flag is true. The MCAsmInfo parens flag is enabled only for ARM on ELF. By adding this flag to MCAsmInfo, we are able to get rid of redundant ARM-specific symbol variants and use the generic variants instead (e.g. VK_GOT instead of VK_ARM_GOT). We use the new UseParensForSymbolVariant attribute in MCAsmInfo to correctly print the symbol variants for arm. To achive this we need to keep a handle to the MCAsmInfo in the MCSymbolRefExpr class that we can check when printing the symbol variant. Updated Tests: Changed case of symbol variant to match the generic kind. test/CodeGen/ARM/tls-models.ll test/CodeGen/ARM/tls1.ll test/CodeGen/ARM/tls2.ll test/CodeGen/Thumb2/tls1.ll test/CodeGen/Thumb2/tls2.ll PR18080 llvm-svn: 196424
-
Faisal Vali authored
Clang currently croaks on the following: struct X1 { struct X2 { int L = ([] (int i) { return i; })(2); }; }; asserting that the containing lexical context of the lambda is not Sema's cur context, when pushing the lambda's decl context on. This occurs because (prior to this patch) getContainingDC always returns the non-nested class for functions at class scope (even for inline member functions of nested classes (to account for delayed parsing of their bodies)). The patch addresses this by having getContainingDC always return the lexical DC for a lambda's call operator. Link to the bug: http://llvm.org/bugs/show_bug.cgi?id=18052 Link to Richard Smith's feedback on phabricator: http://llvm-reviews.chandlerc.com/D2331 Thanks! llvm-svn: 196423
-
Eric Christopher authored
llvm-svn: 196422
-
Eric Christopher authored
llvm-svn: 196421
-
Aaron Ballman authored
The MSP430Interrupt attribute does have a sema handler (it's in TargetAttributesSema). Added a FIXME about the attribute being nameless when it really does have a valid name, and a comment explaining why we're using the name instead of the attribute kind. llvm-svn: 196420
-
Eric Christopher authored
rather than magically making the names match. llvm-svn: 196419
-
Eric Christopher authored
llvm-svn: 196418
-
Aaron Ballman authored
Getting rid of some hard-coded strings. No functional changes intended, though some test cases needed to be updated for attribute names becoming quoted. llvm-svn: 196417
-
David Blaikie authored
While we still have a few (~4) non-trivial comments with string concatenation, etc that should remain conditionalized, these trivial literal comments can be simplified. llvm-svn: 196416
-
Aaron Ballman authored
llvm-svn: 196415
-
David Blaikie authored
llvm-svn: 196414
-
Greg Clayton authored
Patch from Todd Fiala that install the lldb.py module in the prefix directory and also makes install fail if the prefix directory can't be accessed llvm-svn: 196413
-
Eric Christopher authored
checks. No functional change. llvm-svn: 196412
-
Howard Hinnant authored
Give all members of exception types default visibility. Lack of this is causing some illegal code relocations rare and hard to reproduce cases. llvm-svn: 196411
-
Rafael Espindola authored
llvm-svn: 196410
-
John Thompson authored
llvm-svn: 196409
-