summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-enable tests in llvm/test/Object, corresponding to line_iterator'sNAKAMURA Takumi2014-11-045-15/+0
| | | | | | change in r221153. llvm-svn: 221265
* clang/test/VFS/umbrella-mismatch.m: Let it work on win32 to avoid ↵NAKAMURA Takumi2014-11-041-2/+1
| | | | | | | backslashes in yaml. FIXME: Is it intentional? s;OUT_DIR;%/S/Inputs; llvm-svn: 221264
* clang/test/Coverage/html-diagnostics.c: Use find(1) to avoid globbing.NAKAMURA Takumi2014-11-041-4/+1
| | | | llvm-svn: 221263
* llvm/test/Transforms/GCOVProfiling/linezero.ll: Use %/T instead of %T in ↵NAKAMURA Takumi2014-11-041-2/+1
| | | | | | regex. This works on win32. llvm-svn: 221262
* clang/test/Modules: Remove "REQUIRES:shell" since they work for me.NAKAMURA Takumi2014-11-0412-14/+0
| | | | llvm-svn: 221261
* Use findProgramByName. NFC.Rafael Espindola2014-11-041-3/+4
| | | | llvm-svn: 221260
* clang-format: Use identifier table for keywords in other languages.Daniel Jasper2014-11-048-65/+127
| | | | | | | | | Slightly easier to write, more efficient and prevents bugs by misspelling them. No functional changes intended. llvm-svn: 221259
* Remove FindProgramByName. NFC.Rafael Espindola2014-11-044-100/+5
| | | | llvm-svn: 221258
* Use llvm::sys::findProgramByName. NFC.Rafael Espindola2014-11-042-25/+31
| | | | llvm-svn: 221257
* clang-format: [Java] Fix class declaration line breaks.Daniel Jasper2014-11-042-0/+9
| | | | | | | | | | | | | | | | Before: @SomeAnnotation() abstract class aaaaaaaaa<a> extends bbbbbbbbbbbb<b> implements cccccccccccc { } After: @SomeAnnotation() abstract class aaaaaaaaa<a> extends bbbbbbbbbbbb<b> implements cccccccccccc { } llvm-svn: 221256
* clang-format: Fix vim integration if g:clang_format_binary doesn't existDaniel Jasper2014-11-041-1/+1
| | | | llvm-svn: 221254
* Fix Visual C++ warning, Program.inc(85): warning C4018: '<' : ↵Yaron Keren2014-11-041-1/+1
| | | | | | signed/unsigned mismatch. llvm-svn: 221252
* Use argument type directly from fflush if available in translation unitTobias Grosser2014-11-041-1/+7
| | | | | | | | | | | | | | | When our RuntimeDebugBuilder calles fflush(NULL) to flush all output streams, it is important that the types we use in the call match the ones used in a declaration of fflush possible already available in the translation unit. As we just pass on a NULL pointer, the type of the pointer value does not really matter. However, as LLVM complains in case of mismatched types, we make sure to create a NULL pointer of identical type. No test case, as RuntimeDebugBuilder is not permanently used in Polly. Calls to it are until now only used to add informative output during debugging sessions. llvm-svn: 221251
* Add missing tests for build attribute encodings in object files.Charlie Turner2014-11-041-17/+106
| | | | | | | | | test/MC/ARM/directive-eabi_attribute.s was missing several tests of object file encodings relative to the existing tests for assembly file encodings. This commit adds the missing tests. Change-Id: Ie110ca02b65e8f4d4c77f437bd09d03607fa5c0d llvm-svn: 221250
* Driver: Pass some std::strings by reference instead of valueDavid Majnemer2014-11-041-2/+2
| | | | | | No functional change intended. This fixes PR21463. llvm-svn: 221249
* [clang-tidy] Move -extra-arg handling to CommonOptionsProviderAlexander Kornienko2014-11-045-63/+99
| | | | | | | | | | | | | | | | | | Summary: Handle -extra-arg and -extra-arg-before options in the CommonOptionsProvider so they can be used in all clang tools. Adjust arguments in a CompilationDatabase wrapper instead of adding ArgumentsAdjuster to the tool. Reviewers: djasper, klimek Reviewed By: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D6073 llvm-svn: 221248
* llvm-objdump: Pass DiceTableEntry by referenceDavid Majnemer2014-11-041-2/+2
| | | | | | | | | DiceTableEntry is 24 bytes on my machine, it's probably better to pass them by reference. This fixes PR21464. llvm-svn: 221247
* sys::findProgramByName(): [Win32] Tweak to pass lowercase .exe to ↵NAKAMURA Takumi2014-11-041-0/+1
| | | | | | | | | SearchPath() to appease clang Driver's tests. It seems SearchPath() doesn't show actual extension on the filesystem. FIXME: Shall we use FindFirstFile() here? llvm-svn: 221246
* CodeGen: Enable DWARF emission for MS ABI targetsDavid Majnemer2014-11-046-57/+67
| | | | | | | | | | | | | | This is experimental, just barely enough to get things to not immediately combust. A note for those who are curious: Only lld can successfully link the object files, other linkers truncate the section names making the debug sections illegible to debuggers. Even with this in mind, we believe we are having trouble with SECREL relocations. llvm-svn: 221245
* #include <winbase.h> is not enough for Visual C++ 2013, it errors:Yaron Keren2014-11-041-1/+1
| | | | | | | | | | | | 1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\minwinbase.h(46): error C2146: syntax error : missing ';' before identifier 'nLength' 1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\minwinbase.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ... including <windows.h> is actually required. llvm-svn: 221244
* test: Restore llvm-lit (at least for my machine)David Majnemer2014-11-041-16/+19
| | | | | | r221137 feeds None into os.path.join which is not valid. llvm-svn: 221242
* Add recognition for another x86 epilogue sequence (ret followed byJason Molenda2014-11-041-0/+11
| | | | | | | | a nop). Fixes an instruction stepping problem when trying to step over the final instructions of an epilogue. <rdar://problem/18068877> llvm-svn: 221241
* Actually mark the tests an unsupported with MSAN (not just ASAN)Eric Fiselier2014-11-0430-30/+30
| | | | llvm-svn: 221240
* Add one extra sanity check to RegisterContextLLDB::TryFallbackUnwindPlanJason Molenda2014-11-041-0/+8
| | | | | | | so it doesn't try the arch default if a comiler-generated (eh_frame, compact unwind info) based unwind plan has failed. llvm-svn: 221239
* Back out r221229 -- instead of trying to identify the end of the unwind,Jason Molenda2014-11-045-128/+24
| | | | | | | | | | | | | | | | | let's let lldb try the arch default unwind every time but not destructively -- it doesn't permanently replace the main unwind method for that function from now on. This fix is for <rdar://problem/18683658>. I tested it against Ryan Brown's go program test case and also a collection of core files of tricky unwind scenarios <rdar://problem/15664282> <rdar://problem/15835846> <rdar://problem/15982682> <rdar://problem/16099440> <rdar://problem/17364005> <rdar://problem/18556719> that I've fixed over the last 6-9 months. llvm-svn: 221238
* Minimize test case furtherDavid Majnemer2014-11-041-24/+17
| | | | | | No functional change intended. llvm-svn: 221237
* Mark tests that replace operator new/delete as UNSUPPORTED with ASAN and MSAN.Eric Fiselier2014-11-0432-6/+68
| | | | | | | tests that replace operator new/delete won't link when using ASAN and MSAN because these sanitizers also replace new/delete. llvm-svn: 221236
* [ELF] Update TODOShankar Easwaran2014-11-041-2/+6
| | | | llvm-svn: 221235
* [ELF] Fix MSVC buildbot.Shankar Easwaran2014-11-041-3/+3
| | | | | | | | For some reason, MSVC doesnot like the style. Checking to make sure this fixes the problem with the build. llvm-svn: 221234
* [ELF] Fix program headers.Shankar Easwaran2014-11-048-212/+191
| | | | | | | | | The ELF writer creates a invalid binary for few cases with large filesize and memory size for segments. This patch addresses the functionality and updates the test. This patch also cleans up parts of the ELF writer for future enhancements to support Linker scripts. llvm-svn: 221233
* Fix one more [-Werror,-Winconsistent-missing-override] error.Eric Christopher2014-11-041-1/+1
| | | | llvm-svn: 221232
* Fix a bunch of [-Werror,-Winconsistent-missing-override] errors.Eric Christopher2014-11-045-116/+117
| | | | llvm-svn: 221231
* Remove virtual from a member function that's not overridden.Rui Ueyama2014-11-041-1/+1
| | | | llvm-svn: 221230
* After we've completed a full backtrace, we'll have one frame whichJason Molenda2014-11-043-2/+26
| | | | | | | | | | | | | | | | is "invalid" -- it is past the end of the stack trace. Add a new method IsCompletedStackWalk() so we can tell if an invalid stack frame is from a complete backtrace or if it might be worth re-trying the last unwind with a different method. This fixes the unwinder problems Ryan Brown was having with go programs. The unwinder can (under the right circumstances) still destructively replace unwind plans permanently - I'll work on that in a different patch. <rdar://problem/18683658> llvm-svn: 221229
* R600/LLVMBuild.txt: Add TransformUtils.NAKAMURA Takumi2014-11-041-1/+1
| | | | llvm-svn: 221228
* Docs: give binutils/gold instructions for CMake too.Tim Northover2014-11-041-3/+5
| | | | | | Patch by Steve King. llvm-svn: 221227
* Revert "Transforms: reapply SVN r219899"Reid Kleckner2014-11-047-110/+49
| | | | | | | This reverts commit r220811 and r220839. It made an incorrect change to musttail handling. llvm-svn: 221226
* [TSan] Don't strip binary/library name until the moment we print it.Alexey Samsonov2014-11-044-15/+22
| | | | | | | | | | | | | | | This commit changes the place where TSan runtime turns full path to binary or shared library into its basename (/usr/foo/mybinary -> mybinary). Instead of doing it as early as possible (when we obtained the full path from the symbolizer), we now do it as late as possible (right before printing the error report). This seems like a right thing to do - stripping to basename is a detail of report formatting implementation, and should belong there. Also, we might need the full path at some point - for example, to match the suppressions. llvm-svn: 221225
* Add test for type properties of std::reference_wrapperEric Fiselier2014-11-041-0/+27
| | | | llvm-svn: 221224
* Remove setPreservesCFG from instcombine. The pass, in particular, does notMark Heffernan2014-11-041-1/+2
| | | | | | | | | preserve LoopSimplify because instcombine may replace branch predicates with undef which loop simplify then replaces with always exit. Replace setPreservesCFG with the more constrained preservation of DomTree and LoopInfo. llvm-svn: 221223
* [llvm-api-change] Use findProgramByName.Michael J. Spencer2014-11-043-7/+9
| | | | llvm-svn: 221222
* Use findProgramByName.Michael J. Spencer2014-11-044-21/+52
| | | | llvm-svn: 221221
* [Support][Program] Add findProgramByName(Name, OptionalPaths)Michael J. Spencer2014-11-043-0/+110
| | | | llvm-svn: 221220
* Use the LLVM_GNUC_PREREQ macro instead of the longhand version checkReid Kleckner2014-11-041-4/+3
| | | | llvm-svn: 221219
* Remove the END_WITH_NULL macro now that Clang doesn't use itReid Kleckner2014-11-041-2/+0
| | | | llvm-svn: 221218
* Use the new LLVM_END_WITH_NULL nameReid Kleckner2014-11-042-3/+3
| | | | llvm-svn: 221217
* Remove the static version of getScatteredRelocationType() now that r221211 addedKevin Enderby2014-11-041-5/+0
| | | | | | | | a public version MachOObjectFile::getScatteredRelocationType(). This should fix the build bot for the unused function error. llvm-svn: 221216
* Rename END_WITH_NULL to LLVM_END_WITH_NULL and move to Compiler.hReid Kleckner2014-11-047-21/+17
| | | | | | | | | We shouldn't put this kind of attribute stuff in DataTypes.h. Leave the END_WITH_NULL name for now so I can update clang without making build spam. llvm-svn: 221215
* The patchpoint lowering logic would crash with live constants equal toSanjoy Das2014-11-043-1/+94
| | | | | | | the tombstone or empty keys of a DenseMap<int64_t, T>. This patch fixes the issue (and adds a tests case). llvm-svn: 221214
* Fixed SBTarget::ReadMemory() to work correctly and the TestTargetAPI.py test ↵Greg Clayton2014-11-042-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | case that was reading target memory in TargetAPITestCase.test_read_memory_with_dsym and TargetAPITestCase.test_read_memory_with_dwarf. The problem was that SBTarget::ReadMemory() was making a new section offset lldb_private::Address by doing: size_t SBTarget::ReadMemory (const SBAddress addr, void *buf, size_t size, lldb::SBError &error) { ... lldb_private::Address addr_priv(addr.GetFileAddress(), NULL); bytes_read = target_sp->ReadMemory(addr_priv, false, buf, size, err_priv); This is wrong. If you get the file addresss from the "addr" argument and try to read memory using that, it will think the file address is a load address and it will try to resolve it accordingly. This will work fine if your executable is loaded at the same address (no slide), but it won't work if there is a slide. The fix is to just pass along the "addr.ref()" instead of making a new addr_priv as this will pass along the lldb_private::Address that is inside the SBAddress (which is what we want), and not always change it into something that becomes a load address (if we are running), or abmigious file address (think address zero when you have 150 shared libraries that have sections that start at zero, which one would you pick). The main reason for passing a section offset address to SBTarget::ReadMemory() is so you _can_ read from the actual section + offset that is specified in the SBAddress. llvm-svn: 221213
OpenPOWER on IntegriCloud