summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed colons from some target datalayout strings in test, since they don't ↵Lang Hames2011-10-1217-17/+17
| | | | | | match the required format. llvm-svn: 141825
* Don't label a STAB debugging symbol as a function symbol.Owen Anderson2011-10-121-0/+5
| | | | llvm-svn: 141824
* Add pointer to the examples/customization directory for examples of lldb ↵Johnny Chen2011-10-122-0/+34
| | | | | | customizations. llvm-svn: 141823
* sectionContainsSymbol needs to be based on VMA's rather than section indices ↵Owen Anderson2011-10-121-2/+17
| | | | | | to properly account for files with segment load commands that contain no sections. llvm-svn: 141822
* Extended the lifetime of Clang parser objects to theSean Callanan2011-10-122-4/+11
| | | | | | | | | | | | | lifetime of ClangExpressionDeclMap. This allows ClangExpressionVariables found during parsing to be queried for their containing namespaces during expression execution. Other clients (like ClangFunction) explicitly delete this state, so they should not result in any memory leaks. llvm-svn: 141821
* Fix a couple hash functions so that they do not depend on undefined shifts. ↵Eli Friedman2011-10-121-2/+2
| | | | | | Based on patch by Ahmed Charles. llvm-svn: 141820
* ARM addrmode5 represents the 'U' bit of the encoding backwards.Jim Grosbach2011-10-121-14/+17
| | | | | | | The disassembler needs to use the AM5 factory methods instead of just building up the immediate directly. llvm-svn: 141819
* Fix APFloat::getSmallestNormalized so the shift doesn't depend on undefined ↵Eli Friedman2011-10-121-1/+1
| | | | | | behavior. Patch from Ahmed Charles. llvm-svn: 141818
* Prepend '~' to the sys.path so that ~/utils.py takes precedence.Johnny Chen2011-10-121-1/+2
| | | | llvm-svn: 141817
* Fix APFloat::getLargest so that it actually returns the correct value. ↵Eli Friedman2011-10-122-2/+8
| | | | | | Found by accident while reviewing a patch to nearby code. llvm-svn: 141816
* Section indices in MachO symbol tables begin at 1, not 0.Owen Anderson2011-10-121-1/+1
| | | | llvm-svn: 141815
* Finish supporting cpp #file/line comments in assembler for error messages. SoKevin Enderby2011-10-123-7/+75
| | | | | | | | for cpp pre-processed assembly we give correct filename and line numbers when reporting errors in assembly files when using clang and -integrated-as on .s files. rdar://8998895 llvm-svn: 141814
* Disable machine LICM speculation check (for profitability) until I have time ↵Evan Cheng2011-10-121-6/+15
| | | | | | to investigate the regressions. llvm-svn: 141813
* To find the exiting VN of a LiveInterval from a block, use the previous slotCameron Zwarich2011-10-121-1/+1
| | | | | | | | | | | rather than the previous index. If a block has a single instruction, the previous index may be in a different basic block. I have no clue how this used to work on all of test-suite, because now this failure is seen quite often when trying to compile code with -strong-phi-elim. This fixes PR10252. llvm-svn: 141812
* Thumb2 assembly parsing and encoding for LDC/STC.Jim Grosbach2011-10-125-100/+237
| | | | llvm-svn: 141811
* Patch by Enrico to provide an example of 'import' commnad for importing ↵Johnny Chen2011-10-122-0/+61
| | | | | | .py/.pyc files. llvm-svn: 141810
* When we determine that a function template specialization produced asDouglas Gregor2011-10-124-16/+19
| | | | | | | | | | | | | | | part of template argument deduction is ill-formed, we mark it as invalid and treat it as a deduction failure. If we happen to find that specialization again, treat it as a deduction failure rather than silently building a call to the declaration. Fixes PR11117, a marvelous bug where deduction failed after creating an invalid specialization, causing overload resolution to pick a different candidate. Then we performed a similar overload resolution later, and happily picked the invalid specialization to call... resulting in a silent link failure. llvm-svn: 141809
* Refactoring in preparation for having multipleSean Callanan2011-10-122-14/+18
| | | | | | | | | | | | | | calls to the FindExternalVisibleDecls function. FindExternalVisibleDecls was recording whether it had found generic function symbols in variables that were local to the function. Now, however, multiple calls occur in response to one request from Clang, since we may be searching across namespaces. To support that, I moved the local variables into a bitfield in NameSearchContext. llvm-svn: 141808
* Hoist vector.size() computation out of the loop. No functionality change.Nick Lewycky2011-10-121-1/+2
| | | | llvm-svn: 141807
* Add test case for __has_warning.Ted Kremenek2011-10-121-0/+19
| | | | llvm-svn: 141806
* Change __extension__ to disable only diagnostics controlled by -pedantic.Bob Wilson2011-10-122-8/+7
| | | | | | | | | | | | This changes clang to match GCC's behavior for __extension__, which temporarily disables the -pedantic flag. Warnings that are enabled without -pedantic are not affected. Besides the general goodness of matching GCC's precedent, my motivation for this is that macros in the arm_neon.h header need to use __extension__ to avoid pedantic complaints about their use of statement expressions, yet we still want to warn about incompatible pointer arguments for those macros. llvm-svn: 141804
* Add returns_twice to functions that are known to return twice. This implementsRafael Espindola2011-10-128-2/+51
| | | | | | the same behavior of gcc by keeping the attribute out of the function type. llvm-svn: 141803
* Implement built-in macro '__has_warning', which allows one to query if a ↵Ted Kremenek2011-10-126-1/+96
| | | | | | warning flag is valid. Fixes <rdar://problem/10263428>. llvm-svn: 141802
* Switch diagnostic text from "C++0x" over to "C++11".Douglas Gregor2011-10-1226-91/+91
| | | | | | | | We'd also like for "C++11" or "c++11" to be used for the warning groups, but without removing the old warning flags. Patches welcome; I've run out of time to work on this today. llvm-svn: 141801
* Add reference to ToT/examples/customization for more customization examples.Johnny Chen2011-10-121-1/+4
| | | | llvm-svn: 141800
* Add an examples/customization directory and add a subdirectory pwd-cd-and-systemJohnny Chen2011-10-123-0/+74
| | | | | | | which contains the lldb init file and a utils.py Python module in order to add the 'pwd', 'cd', and 'system' lldb commands. llvm-svn: 141799
* We do parse hexfloats in C++11; make it actually work.Douglas Gregor2011-10-123-12/+3
| | | | llvm-svn: 141798
* Made the expression parser's type search call theSean Callanan2011-10-121-26/+24
| | | | | | proper namespace-aware APIs. llvm-svn: 141797
* Revert file/scope handling patches. gdb testing revealed a couple of bugs.Eric Christopher2011-10-129-120/+149
| | | | llvm-svn: 141796
* The Objective-C rewriter uses the fragile ABI, always.Douglas Gregor2011-10-122-2/+4
| | | | llvm-svn: 141795
* addrmode2 is gone from these, so no need for the reg0 operand.Jim Grosbach2011-10-121-24/+0
| | | | llvm-svn: 141794
* Fix typo in name of diagnostic.Ted Kremenek2011-10-122-2/+2
| | | | llvm-svn: 141793
* Added support to ClagnExpressionDeclMap for findingSean Callanan2011-10-122-7/+36
| | | | | | data symbols in namespaces. llvm-svn: 141792
* Add cleanups for 'command script add' to TestCommandPython.py.Johnny Chen2011-10-121-0/+10
| | | | llvm-svn: 141790
* Changed FindExternalVisibleDecls() to use the moduleSean Callanan2011-10-121-6/+19
| | | | | | | level FindFunctions() where appropriate and not use SymbolContext::FindFunctionsByName(). llvm-svn: 141789
* Handle the case where preprocessor entities are not received in order,Argyrios Kyrtzidis2011-10-123-5/+35
| | | | | | fixes http://llvm.org/PR11120 llvm-svn: 141788
* ARM encoding tests for STC.Jim Grosbach2011-10-121-0/+85
| | | | llvm-svn: 141787
* ARM parsing and encoding for the <option> form of LDC/STC instructions.Jim Grosbach2011-10-127-9/+99
| | | | llvm-svn: 141786
* Add -std=c++11 and -std=gnu++11 language flags, from Ahmed CharlesDouglas Gregor2011-10-121-2/+8
| | | | llvm-svn: 141785
* Oops, committed my local build settings. Fixed that.Sean Callanan2011-10-122-14/+14
| | | | llvm-svn: 141784
* Made FindGlobalVariable() optionally search a specificSean Callanan2011-10-124-28/+40
| | | | | | | | module and namespace. Also made it use FindGlobalVariables() instead of the more heavyweight GetVariablesForVariableExpressionPath(). llvm-svn: 141783
* Introduce BalancedDelimiterTracker, to better track open/closeDouglas Gregor2011-10-1212-403/+596
| | | | | | | delimiter pairs and detect when we exceed the implementation limit for nesting depth, from Aaron Ballman! llvm-svn: 141782
* 80 columns.Jim Grosbach2011-10-121-2/+1
| | | | llvm-svn: 141781
* Tidy up. Formatting.Jim Grosbach2011-10-121-2/+2
| | | | llvm-svn: 141780
* Fix a thinko that Nick noticed. The previous code actually worked asDan Gohman2011-10-121-1/+1
| | | | | | intended, but only by accident. llvm-svn: 141779
* Teach __has_nothrow_assign not to complain about access (GCC and EDGDouglas Gregor2011-10-122-1/+39
| | | | | | | ignore access entirely for it) and not to crash on assignment operator templates. Fixes PR11110. llvm-svn: 141777
* lib/Object/ELFObjectFile.cpp: Fix undefined behavior for ↵NAKAMURA Takumi2011-10-121-1/+4
| | | | | | | | MC/ELF/many-section.s not to fail (on msvc). DenseMap::lookup(k) would return "default constructor value" when k was not met. It would be useless when value type were POD. llvm-svn: 141774
* Removed extra line in comment.Jim Goodnow II2011-10-121-1/+0
| | | | llvm-svn: 141773
* Add target info for Linux on PPC & Sparc.Anton Korobeynikov2011-10-121-0/+6
| | | | | | Patch by Hal Finkel! llvm-svn: 141772
* Introduce SourceManager::getFileLoc which returns a file locationArgyrios Kyrtzidis2011-10-122-0/+19
| | | | | | taking into account macro arguments. llvm-svn: 141771
OpenPOWER on IntegriCloud