summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add all Decls found through FindExternalLexicalDeclsSean Callanan2013-05-091-0/+12
| | | | | | | | | | | | | | to the DeclContext. This fulfils the contract that we make with Clang by returning ELR_AlreadyLoaded. This is a little aggressive in that it does not allow the ASTImporter to import the child decls with any lexical parent other than the Decl that reported them as children. <rdar://problem/13517713> llvm-svn: 181498
* Changing the std::map test case to use source breakpoints instead of relying ↵Enrico Granata2013-05-092-30/+45
| | | | | | | | on the nexting always "getting it right" to stop at the locations of interest This should make us more robust in the face of changing compiler line tables and other library modifications llvm-svn: 181497
* Revert "Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)"Eric Christopher2013-05-093-135/+12
| | | | | | | | temporarily while investigating gdb.cp/templates.exp. This reverts commit r181471. llvm-svn: 181496
* LoopVectorizer: Don't assert on the absence of induction variablesArnold Schwaighofer2013-05-092-1/+36
| | | | | | | | | A computable loop exit count does not imply the presence of an induction variable. Scalar evolution can return a value for an infinite loop. Fixes PR15926. llvm-svn: 181495
* Put some diagnostics in DiagnosticCommonKinds.td in a category, mirroring ↵Ted Kremenek2013-05-091-0/+10
| | | | | | | | | what they are in other .td files. I really dislike the copy-pasting of the category strings. If there is a better way to do this with TableGen, please advise. llvm-svn: 181494
* Fix the error reporting for ProcessKDP::DoDetach.Jim Ingham2013-05-091-5/+10
| | | | llvm-svn: 181493
* [lld] Add comments to InputFiles::searchLibraries() arguments.Rui Ueyama2013-05-081-4/+11
| | | | llvm-svn: 181492
* Objective-C: Correctly encode 'retain' and 'copy' for readonly properties.Nico Weber2013-05-082-0/+16
| | | | | | | | | | clang would omit 'C' for 'copy' properties and '&' for 'retain' properties if the property was also 'readonly'. Fix this, which makes clang match gcc4.2's behavior. Fixes PR15928. llvm-svn: 181491
* [PCH] Remove the ASTReaderListener::ReadHeaderFileInfo callback.Argyrios Kyrtzidis2013-05-085-38/+5
| | | | | | | | This made sense in pre-module era, before merging of HeaderFileInfos was introduced. Final part of rdar://13840148. llvm-svn: 181490
* [modules] When building a module, make sure we don't serialize out ↵Argyrios Kyrtzidis2013-05-0811-7/+45
| | | | | | | | | | | HeaderFileInfo for headers not belonging to the module. After r180934 we may initiate module map parsing for modules not related to the module what we are building, make sure we ignore the header file info of headers from such modules. First part of rdar://13840148 llvm-svn: 181489
* Fixed the process attach by name test to get the target _after_ doing ↵Greg Clayton2013-05-081-2/+2
| | | | | | process attach. Otherwise the target isn't valid. This fixes 2 test suite failures on darwin. llvm-svn: 181488
* put noisy "unknown command tag name" warningFariborz Jahanian2013-05-082-2/+5
| | | | | | | under -Wdocumentation-unknown-command and off by default. patch by Dmitri Gribenko. llvm-svn: 181487
* Remove debug print statement.Greg Clayton2013-05-081-1/+0
| | | | llvm-svn: 181486
* typoAdrian Prantl2013-05-081-1/+1
| | | | llvm-svn: 181485
* [lld][Core] Fix latch synchronization bug.Rui Ueyama2013-05-081-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to acquire a lock before signal a condition. Otherwise threads waiting on a condition variable can miss a signal. Consider two threads: Thread A executing dec() and thread B executing sync(). The initial value of _count is 1. If these two threads are interleaved in the following order, thread B misses the signal sent by thread A, because at the time thread A sends a signal, B is not waiting for it. Thread A | Thread B | std::unique_lock<std::mutex> lock(_condMut); | while (!(_count == 0)) { if (--_count == 0) | _cond_notify_all() | | _cond.wait(); | } Note that "wait(lock, pred)" is equivalent to "while(!pred()) wait(lock)", so I expanded it in the above example. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D764 llvm-svn: 181484
* [lld] Add "explicit" to constructors where appropriate.Rui Ueyama2013-05-0811-28/+30
| | | | | | | | | | | | Summary: Add the explicit keyword to one-parameter constructors to prevent unintended type conversions. CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D765 llvm-svn: 181483
* Adding code to set thread state to stopped when the process stops.Andrew Kaylor2013-05-086-2/+48
| | | | llvm-svn: 181482
* Comment: use \code...\endcode for code examplesDmitri Gribenko2013-05-081-1/+3
| | | | llvm-svn: 181481
* All -Wdocumentation warnings are DefaultIgnoreDmitri Gribenko2013-05-081-2/+2
| | | | llvm-svn: 181480
* unbreak buildbot.Fariborz Jahanian2013-05-081-1/+1
| | | | llvm-svn: 181479
* Use correct parameter names in comments [-Wdocumentation]Dmitri Gribenko2013-05-081-3/+3
| | | | llvm-svn: 181478
* [doc parsing]: Also do typo correction forFariborz Jahanian2013-05-082-21/+37
| | | | | | | dynamically registered commands. // rdar://12381408 llvm-svn: 181477
* Revert 181475 as the DebugIR tests are breaking (automake) buildbots that ↵Daniel Malea2013-05-0814-700/+0
| | | | | | | | re-use build dirs - the temporaries "-debug.ll" files generated by DebugIR pass are considered tests, even though they are not llvm-svn: 181476
* Now that you can "command script import" packages, the docs should reflect ↵Enrico Granata2013-05-082-8/+8
| | | | | | the best practice llvm-svn: 181475
* Quiet g++-4.7 warnings about const issues and fix the scope of the "if ↵Greg Clayton2013-05-081-6/+8
| | | | | | (IsValid())". llvm-svn: 181474
* Use anonymous namespace for local classes. Patch by Rui UeyamaNick Kledzik2013-05-081-2/+6
| | | | llvm-svn: 181473
* Test case added for importing packagesEnrico Granata2013-05-085-8/+28
| | | | llvm-svn: 181472
* Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)Eric Christopher2013-05-083-12/+135
| | | | | | | | | for constructors and destructors since the original declaration given by the AT_specification both won't and can't. Patch by Yacine Belkadi, I've cleaned up the testcases. llvm-svn: 181471
* Put a 1-character unget buffer into cin. This fixes ↵Howard Hinnant2013-05-081-20/+49
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=15867 llvm-svn: 181470
* DebugIR tests -- lit tests for the line number transformDaniel Malea2013-05-0814-0/+700
| | | | | | | | | | | - simple one-function case - function-calling case - external function calling case - exception throwing case - vector case Note: these tests are somewhat coupled to the current format of debug metadata. llvm-svn: 181469
* Fix test in two ways: remove incorrect comment (the intrinsic generated nowEli Bendersky2013-05-081-3/+4
| | | | | | is of the llvm.sjlj.* flavore) and convert grep->FileCheck llvm-svn: 181468
* Add DebugIR pass -- emits IR file and replace source lines with IR lines in MDDaniel Malea2013-05-087-0/+263
| | | | | | | | | | | - requires existing debug information to be present - fixes up file name and line number information in metadata - emits a "<orig_filename>-debug.ll" succinct IR file (without !dbg metadata or debug intrinsics) that can be read by a debugger - initialize pass in opt tool to enable the "-debug-ir" flag - lit tests to follow llvm-svn: 181467
* Pull up AssemblyWriter interface into header to allow subclassingDaniel Malea2013-05-082-84/+160
| | | | | | | | | | | - made all functions virtual so that subclasses can specialize them - add printInstructionLine so that subclasses can choose whether or not to print the newline character (without having to implement printBasicBlock() - added a second constructor to AssemblyWriter that does not require a SlotTracker, as required in order to keep the SlotTracker helper class outside AsmWriter.h and buried in the implementation. llvm-svn: 181466
* Add missing triple to unit test.Richard Smith2013-05-081-2/+1
| | | | llvm-svn: 181465
* Turn off a warning caused by my last patch.Fariborz Jahanian2013-05-081-1/+1
| | | | llvm-svn: 181464
* Add line tracking support to FormattedStream Daniel Malea2013-05-082-29/+42
| | | | | | | | - previously formatted_raw_ostream tracked columns, now it tracks lines too - used by (upcoming) DebugIR pass to know the line number to connect to each IR instruction llvm-svn: 181463
* <rdar://problem/13621080>Enrico Granata2013-05-083-11/+33
| | | | | | | | | This commit changes the ${function.name-with-args} prompt keyword to also tackle structs Previously, since aggregates have no values, this would show up as foo=(null) This checkin changes that to instead print foo=(Foo at 0x123) (i.e. typename at address) There are other potential choices here (summary, one-liner printout of all members, ...) and I would love to hear feedback about better options, if any llvm-svn: 181462
* Improvements to the package importing feature - test case will followEnrico Granata2013-05-081-4/+14
| | | | llvm-svn: 181461
* Update lldb status page to reflect watchpoint support on Linux.Matt Kopec2013-05-081-1/+1
| | | | llvm-svn: 181460
* [mips] Add instruction selection pattern for (seteq $LHS, 0).Akira Hatanaka2013-05-082-0/+13
| | | | llvm-svn: 181459
* documentation parsing. Patch to do typo correction for Fariborz Jahanian2013-05-085-3/+52
| | | | | | | | documentation commands. Patch was reviewed, along with great suggestions for improvement, by Doug. // rdar://12381408 llvm-svn: 181458
* Try to fix Windows build tooPeter Collingbourne2013-05-081-5/+5
| | | | llvm-svn: 181457
* Mark multi-threaded watchpoint test as skip on Linux due to lldb assertions ↵Matt Kopec2013-05-081-2/+2
| | | | | | in the debian buildbot. llvm-svn: 181454
* [PowerPC] Add ELF relocation testsUlrich Weigand2013-05-081-0/+25
| | | | | | | | | This patch extends test/MC/PowerPC/ppc64-fixups.s to not only check for the correct fixup type in the --show-encoding output, but also runs the generated object file through llvm-readobj -r and verifies that the correct ELF relocation records were generated. llvm-svn: 181453
* Remove unused isLegalAddressImmediate() method.Roman Divacky2013-05-082-21/+0
| | | | llvm-svn: 181452
* [PowerPC] Add some missing PPC64 relocsUlrich Weigand2013-05-082-0/+16
| | | | | | | | | | | | | All R_PPC_... relocs should also be present (using the same number) under the corresponding R_PPC64_... name. The latter were missing for a couple of cases, which this patch adds. This is not a big problem when emitting the reloc, because we can just use the R_PPC_... define instead. But it is a problem when *dumping* relocations e.g. using llvm-readobj, because this will expect only R_PPC64_... values when inspecting a ppc64 ELF file. llvm-svn: 181451
* [PowerPC] Fix regression in generating @ha/@l relocsUlrich Weigand2013-05-081-1/+10
| | | | | | | | | | | | | | | | The patch I committed as revision 167864 introduced a regression that causes LLVM to no longer generate appropriate relocs for @ha/@l symbol references (but fail an assertion instead). This is fixed here by re-enabling support for the VK_PPC_GAS_HA16/ VK_PPC_GAS_LO16 variant kinds (and their Darwin variants) in PPCELFObjectWriter.cpp. Tested by running projects/test-suite in -m32 mode with the integrated assembler forced on. A standalone test case will be committed shortly as well. llvm-svn: 181450
* Fix handling of anonymous aggregate parameters for powerpc*-apple-darwin8.Bill Schmidt2013-05-082-4/+94
| | | | | | | | This fixes bug 15821 similarly to the powerpc64-linux fix for bug 14779. Patch by David Fang. llvm-svn: 181449
* Fix assertion from previous fix for debian os watchpoints.Matt Kopec2013-05-082-3/+3
| | | | | | Also mark one of the tests as expected fail on Linux due to the debian fix. llvm-svn: 181448
* Attempt to fix failing watchpoints for debian os buildbot.Matt Kopec2013-05-081-0/+14
| | | | llvm-svn: 181447
OpenPOWER on IntegriCloud