summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing a few typos in the documentation.Aaron Ballman2014-06-301-3/+3
| | | | llvm-svn: 212039
* clang-format: [JS] support free-standing functions again.Daniel Jasper2014-06-302-1/+15
| | | | | | | | | | | | | | | | | | | | | | | This worked initially but was broken by r210887. Before: function outer1(a, b) { function inner1(a, b) { return a; } inner1(a, b); } function outer2(a, b) { function inner2(a, b) { return a; } inner2(a, b); } After: function outer1(a, b) { function inner1(a, b) { return a; } inner1(a, b); } function outer2(a, b) { function inner2(a, b) { return a; } inner2(a, b); } Thanks to Adam Strzelecki for working on this. llvm-svn: 212038
* Revert the LSDA change to scan_eh_tab.Logan Chien2014-06-301-19/+8
| | | | | | | | | | | This commit reverts the LSDA-related change in r211745. The r211745 adds a new argument to scan_eh_tab(), i.e. lsda. However, IMO, calling _Unwind_GetLanguageSpecificData() directly in scan_eh_tab() was more intuitive and reduces several function call to _Unwind_GetLanguageSpecificData() in __cxx_personality_v0(). llvm-svn: 212037
* [msan] Limit stack origin chain length.Evgeniy Stepanov2014-06-302-4/+36
| | | | | | Stack origins were created with unlimited length by mistake. llvm-svn: 212036
* MachO: stop iterating past the end of an arrayTim Northover2014-06-302-14/+8
| | | | | | | | When trying to map atom types to sections, we were iterating through an array until we hit a sentinel value. There's no need for such dances when range-based for loops are available. llvm-svn: 212035
* [OPENMP] Added table with allowed nesting info for OpenMP regions (per ↵Alexey Bataev2014-06-301-0/+46
| | | | | | request from Samuel F Antao). llvm-svn: 212034
* Added a comment to document relation of this check to -Wold-style-cast.Alexander Kornienko2014-06-301-0/+4
| | | | llvm-svn: 212033
* MachO: re-enable writing of compact-unwind sections.Tim Northover2014-06-302-1/+165
| | | | | | | | | | | | This isn't really the right place to put them in final object files (that would be __TEXT,__unwind_info), but the format is different between relocatable and final objects, which means we really need a pass to handle the translation. For now, re-emitting in __LD,__compact_unwind is harmless (dyld ignores it and moves straight on to inspecting __TEXT,__eh_frame), and sidesteps an assertion failure when processing files containing compact-unwind info. llvm-svn: 212032
* MachO: align segment virtual addresses to page size.Tim Northover2014-06-302-2/+49
| | | | | | | | | Segments must occupy a multiple of the page size in memory (4096 currently). We check for this when emitting files, but the placement algorithm broke down for the second non-__TEXT segment encountered: the offset wasn't aligned up to 4096 before starting its layout. llvm-svn: 212031
* MachO: calculate segment offsets in final MachO files properly.Tim Northover2014-06-302-6/+60
| | | | | | | | | Because of how we were calculating fileOffset and fileSize for segments, most ended up at a single offset in a finalised MachO file. This meant the data often didn't even get written in the final object, let alone where it would be useful. llvm-svn: 212030
* ARM: take care not to set the ThumbFunc bit on TLS data symbolsScott Douglass2014-06-303-1/+29
| | | | | | | | This fixes LNT SingleSource/UnitTests/Threads with -mthumb. Differential Revision: http://reviews.llvm.org/D4324 llvm-svn: 212029
* Second part of fix in CodeGen/captured-statements-nested.cAlexey Bataev2014-06-301-1/+1
| | | | llvm-svn: 212028
* MachO: support atomization of dylibs.Tim Northover2014-06-306-1/+247
| | | | | | | For .dylib files, we refrain from actually creating any atoms until they're requested via the "exports" method. llvm-svn: 212027
* Test fixAlexey Bataev2014-06-301-4/+4
| | | | llvm-svn: 212026
* Fixed incompatibility in CodeGen/captured-statements-nested.c with MSVCAlexey Bataev2014-06-301-1/+1
| | | | llvm-svn: 212025
* Fixed CodeGen/captured-statements-nested.c testAlexey Bataev2014-06-301-26/+23
| | | | llvm-svn: 212024
* [Driver][Mips] Fix test cases - make ABI name and target triple consistent.Simon Atanasyan2014-06-302-4/+4
| | | | | | No functional changes. llvm-svn: 212023
* [Driver][Mips] Check rejecting of invalid MIPS ABI names in the test.Simon Atanasyan2014-06-301-2/+13
| | | | | | No functional changes. llvm-svn: 212022
* undo test commit (whitespace only)Scott Douglass2014-06-301-1/+0
| | | | llvm-svn: 212021
* test commit (whitespace only)Scott Douglass2014-06-301-0/+1
| | | | llvm-svn: 212020
* test commit: add a comment line in GVN test fileErik Eckstein2014-06-301-0/+1
| | | | llvm-svn: 212019
* Disable CodeGen/captured-statements-nested.cAlexey Bataev2014-06-301-0/+1
| | | | llvm-svn: 212018
* Add checking for the complexity guarantees in the standardMarshall Clow2014-06-301-0/+16
| | | | llvm-svn: 212017
* Fixed CodeGen/captured-statements-nested.c testAlexey Bataev2014-06-301-20/+19
| | | | llvm-svn: 212016
* Factored out Linux proc file reading into separate class.Todd Fiala2014-06-305-62/+202
| | | | | | | | | | | | | Both NativeProcessLinux (in llgs branch) and Linux Host.cpp had similar code to handle /proc file reading. I factored that out into a new Linux-specific ProcFileReader class and added a method that the llgs branch will use for line-by-line parsing. This change also adds numerous Linux-specific files to Xcode that were missing from the Xcode project files. Related to https://github.com/tfiala/lldb/issues/27 llvm-svn: 212015
* Disable CodeGen/captured-statements-nested.cAlexey Bataev2014-06-301-1/+1
| | | | llvm-svn: 212014
* Temp XFAIL CodeGen/captured-statements-nested.c to fix the testAlexey Bataev2014-06-301-0/+1
| | | | llvm-svn: 212013
* X86: fix commentSaleem Abdulrasool2014-06-301-1/+1
| | | | | | Fix a comment typo `DbgLocLImport` instead of `DLLImport`. llvm-svn: 212012
* ARM: use symbolic name for constantSaleem Abdulrasool2014-06-301-1/+1
| | | | | | | This just changes the constant value to the symbolic name corresponding to it. NFC. llvm-svn: 212011
* Using of variable length arrays in captured statements and OpenMP constructs.Alexey Bataev2014-06-306-23/+159
| | | | | | Differential Revision: http://reviews.llvm.org/D4067 llvm-svn: 212010
* test: move test from CodeGen to SemaSaleem Abdulrasool2014-06-301-1/+2
| | | | | | | Move test from CodeGen to Sema to more accurately reflect what is being tested as pointed out by Alp. llvm-svn: 212009
* Remove some incorrect test suppressionsAlp Toker2014-06-308-9/+1
| | | | | | | | | These don't actually require any registered backend to run. This commit tests the water with a handful of fixes for what is a more widespread problem. llvm-svn: 212008
* CodeGenAction::ExecuteAction(): check for invalid LLVM source locationsAlp Toker2014-06-301-5/+11
| | | | | | | | | | | | | Add sign checks to deal with the fact that IR parser line/column pairs are signed integers and sometimes invalid. The crash path is potentially triggered by corrupt '.bc' files in practice, though I don't have a binary input test case that can be checked-in right now. (Unfortunately the backend itself crashes on various ill-formed '.bc' inputs so this bandage isn't as helpful as it appears yet.) llvm-svn: 212007
* Extract an isReservedName() functionAlp Toker2014-06-301-18/+18
| | | | | | | | | | | | | | We'll want to share the implementation if anything else decides to check for reserved names in future, so make this little snippet of code more discoverable. Also remove the __va_list_tag and __builtin_va_list special-case checks. They're leftovers from before when the reserved name logic was added. No change in functionality. llvm-svn: 212006
* Pull ProcessInfo and ProcessLaunchInfo out of Target/Process.Todd Fiala2014-06-309-1052/+1247
| | | | | | | | | | | | | | | Elevate ProcessInfo and ProcessLaunchInfo into their own headers. llgs will be using ProcessLaunchInfo but doesn't need to pull in the rest of Process.h. This also moves a bunch of implementation details from the header declarations into ProcessInfo.cpp and ProcessLaunchInfo.cpp. Tested on Ubuntu 14.04 Cmake and MacOSX Xcode. Related to https://github.com/tfiala/lldb/issues/26. llvm-svn: 212005
* Basic: correct the va_list type on Windows on ARMSaleem Abdulrasool2014-06-292-0/+19
| | | | | | | | | Windows on ARM defines va_list as a typedef for char *. Although the semantics of argument passing for variadic functions matches AAPCS VFP, the wrapped struct __va_list type is unused. This makes the intrinsic definition for va_list match that of Visual Studio. llvm-svn: 212004
* Fix a stray semi-colon. (Found by a pedantic warning)Chandler Carruth2014-06-291-1/+1
| | | | llvm-svn: 212003
* Another attempt to add a clang-tidy check for flagging C-style casts.Alexander Kornienko2014-06-295-0/+114
| | | | | | | | | | | | | | | | | | | Summary: The first version failed the SubstNonTypeTempateParmExpr-related test on some buildbots. This one uses the new substNonTypeTempateParmExpr matcher to filter out implicit C-style casts. This patch depends on D4327. Reviewers: djasper Reviewed By: djasper Subscribers: aemerson, cfe-commits Differential Revision: http://reviews.llvm.org/D4328 llvm-svn: 212002
* Add a matcher for SubstNonTypeTemplateParmExpr.Alexander Kornienko2014-06-292-1/+25
| | | | | | | | | | | | Reviewers: klimek, djasper Reviewed By: djasper Subscribers: klimek, aemerson, cfe-commits Differential Revision: http://reviews.llvm.org/D4327 llvm-svn: 212001
* CodeGen: rename Win64 ExceptionHandling to WinEHSaleem Abdulrasool2014-06-295-27/+26
| | | | | | | | | | This exception format is not specific to Windows x64. A similar approach is taken on nearly all architectures. Generalise the name to reflect reality. This will eventually be used for Windows on ARM data emission as well. Switch the enum and namespace into an enum class. llvm-svn: 212000
* [Mips] Fix MIPS ABI name in the test. The name "64" is accepted by both gccSimon Atanasyan2014-06-291-1/+1
| | | | | | and Clang drivers but internally LLVM/Clang use the name "n64". llvm-svn: 211999
* Revert r211866, r211895 and r211995, "Driver: use GNU::Link for the ↵NAKAMURA Takumi2014-06-299-283/+21
| | | | | | | | | | | Generic_GCC toolchain". It broke users of Generic_GCC, cygwin and mingw32. It reverts commits as follows: r211866: "Driver: use GNU::Link for the Generic_GCC toolchain" r211895: "Replace GetProgramPath("ld") with GetLinkerPath()." r211995: "Driver: add a cygwin linker tool" llvm-svn: 211998
* LibclangTest.cpp: s/uint/unsigned/. I think 'uint' is not a standard type.NAKAMURA Takumi2014-06-291-3/+3
| | | | llvm-svn: 211997
* clang/test/CodeGenCXX/windows-itanium-exceptions.cpp: Add REQUIRES:asserts ↵NAKAMURA Takumi2014-06-291-0/+1
| | | | | | for now. llvm-svn: 211996
* Driver: add a cygwin linker toolSaleem Abdulrasool2014-06-297-0/+255
| | | | | | | | | This adds a linker tool for the Windows cygwin environment. This linker invocation is significantly different from the generic ld invocation. It requires additional parameters as well as does not accept some normal parameters. This should fix self-hosting on Cygwin. llvm-svn: 211995
* MC: rename EmitWin64EH routinesSaleem Abdulrasool2014-06-299-103/+101
| | | | | | | | | | | | | | | Rename the routines to reflect the reality that they are more related to call frame information than to Win64 EH. Although EH is implemented in an intertwined manner by augmenting with an exception handler and an associated parameter, the majority of these routines emit information required to unwind the frames. This also helps identify that these routines are generic for most windows platforms (they apply equally to nearly all architectures except x86) although the encoding of the information is architecture dependent. Unwinding data is emitted via EmitWinCFI* and exception handling information via EmitWinEH*. llvm-svn: 211994
* Add ops() method to SDNode that returns an ArrayRef<SDUse>. Use it to ↵Craig Topper2014-06-294-12/+10
| | | | | | simplify some code. llvm-svn: 211993
* test: add a test for windows itanium exceptionsSaleem Abdulrasool2014-06-281-0/+46
| | | | | | | | Some time ago, I noticed that try would get resolved incorrectly for Windows Itanium targets. Add an explicit test to exsure that exceptions are handled correctly for Windows Itanium environments. llvm-svn: 211992
* Basic: fix handling for Windows Itanium environmentSaleem Abdulrasool2014-06-282-0/+16
| | | | | | | This corrects the handling for i686-windows-itanium. This environment is nearly identical to Windows MSVC, except it uses the itanium ABI for C++. llvm-svn: 211991
* Basic: whitespace cleanupSaleem Abdulrasool2014-06-281-3/+0
| | | | | | Remove unnecessary separation of anonymous namespace. NFC. llvm-svn: 211990
OpenPOWER on IntegriCloud