summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Temporary preprocessor hack to get around the Microsoft __identifier(x) ↵Francois Pichet2011-05-072-0/+4
| | | | | | | | | | | extension. http://msdn.microsoft.com/en-us/library/hzc8ytsz(v=VS.100).aspx Microsoft doc claims this is a C++/CLI feature but it is really always enabled. This removes 2 error when parsing MFC code with clang. llvm-svn: 131051
* Add support for _if_exists and __if_not_exists at namespace/global scope.Francois Pichet2011-05-074-43/+105
| | | | llvm-svn: 131050
* The comparision "max(x,y)==x" is equivalent to "x>=y". Since the max isDuncan Sands2011-05-072-10/+92
| | | | | | | often expressed as "x >= y ? x : y", there is a good chance we can extract the existing "x >= y" from it and use that as a replacement for "max(x,y)==x". llvm-svn: 131049
* Fix the non-MC encoding of pkhbt and pkhtb.Eric Christopher2011-05-071-0/+6
| | | | | | Patch by Stephen Hines. llvm-svn: 131045
* Revert ExecutionEngine patches, they either failed to build or broke unit tests.Jakob Stoklund Olesen2011-05-0711-59/+176
| | | | | | Please ensure the build is clean and tests are passing when recommitting. llvm-svn: 131044
* Patch for PR 7409 - only error on definition of invalid typedefs. Suppress ↵Richard Trieu2011-05-072-3/+38
| | | | | | errors for additional uses of this invalid typedef. llvm-svn: 131043
* Made expressions that are just casts of pointer Sean Callanan2011-05-0713-159/+384
| | | | | | | | | | | | variables be evaluated statically. Also fixed a bug that caused the results of statically-evaluated expressions to be materialized improperly. This bug also removes some duplicate code. llvm-svn: 131042
* Deleted one too many characters...Jim Ingham2011-05-071-1/+1
| | | | llvm-svn: 131041
* Fix an unitialized pointer in ValueObject::CreateChildAtIndex.Jim Ingham2011-05-071-1/+1
| | | | llvm-svn: 131039
* Modify the test case related to "target modules search-paths" as it suffers ↵Johnny Chen2011-05-061-7/+11
| | | | | | from code rotting. llvm-svn: 131038
* Implement a minor optimization by not introducing declarations intoDouglas Gregor2011-05-061-4/+4
| | | | | | DeclContext's lookup table when they aren't in any identifier namespace. llvm-svn: 131037
* When checking for a prior declaration of the name of a namespace, skipDouglas Gregor2011-05-062-4/+29
| | | | | | | | any names that aren't in the appropriate identifier namespaces. Fixes an embarrassing bug where we give a redefinition error due to an Objective-C category (<rdar://problem/9388207>). llvm-svn: 131036
* Add an API test script file for SBCommandInterpreter.Johnny Chen2011-05-064-0/+93
| | | | llvm-svn: 131035
* clang/Darwin: Include divsi3 functions on x86, they are used by the divmodDaniel Dunbar2011-05-061-0/+5
| | | | | | implementation. llvm-svn: 131034
* Fix wrong test method name due to cut-and-paste.Johnny Chen2011-05-061-2/+1
| | | | llvm-svn: 131033
* In ms_struct structs, Establish a new alignment for a Fariborz Jahanian2011-05-062-3/+22
| | | | | | non-bitfield following a bitfield if size of their types differ. llvm-svn: 131032
* Switch Darwin to the generic CIE/FDE printer.Rafael Espindola2011-05-062-65/+0
| | | | llvm-svn: 131031
* ExecutionEngine: delete duplicated filesDylan Noblesmith2011-05-062-182/+0
| | | | | | Forgot to `svn rm` these in revisions 131025 / 131029. llvm-svn: 131030
* ExecutionEngine: add missing fileDylan Noblesmith2011-05-061-0/+91
| | | | | | From revision 131025. llvm-svn: 131029
* 1. Keep lines in 80 columns.Akira Hatanaka2011-05-063-7/+7
| | | | | | | 2. Remove unused function. 3. Correct indentation. llvm-svn: 131028
* ExecutionEngine: move createJIT() definitionDylan Noblesmith2011-05-062-19/+29
| | | | | | | As an ExecutionEngine class function, its definition really belongs in ExecutionEngine.cpp, not JIT.cpp. llvm-svn: 131027
* ExecutionEngine: push TargetMachine creation into clientsDylan Noblesmith2011-05-066-58/+22
| | | | | | | | In particular, into EngineBuilder. This should only impact the private API between the EE and EB classes, not external clients, since JITCtor and MCJITCtor are both protected members. llvm-svn: 131026
* ExecutionEngine: fix JIT/MCJIT selectTarget() duplicationDylan Noblesmith2011-05-068-20/+20
| | | | | | | This prepares for making JITCtor/MCJITCtor take a TargetMachine* directly from clients like EngineBuilder. llvm-svn: 131025
* Emit a proper error message when register allocators run out of registers.Jakob Stoklund Olesen2011-05-063-1/+41
| | | | | | | This can't be just an assertion, users can always write impossible inline assembly. Such an assembly statement should be included in the error message. llvm-svn: 131024
* Establish a new alignment for an ms_struct bitfield followingFariborz Jahanian2011-05-064-1/+50
| | | | | | a non-bitfield if size of their types differ. llvm-svn: 131023
* Added an assertion, and updated a comment.Andrew Trick2011-05-061-5/+8
| | | | llvm-svn: 131022
* Keep track of the file ID corresponding to the original file used toDouglas Gregor2011-05-065-7/+28
| | | | | | | | | | | build a precompiled header. Use this information to eliminate the call to SourceManager::getLocation() while loading a precompiled preamble, since SourceManager::getLocation() itself causes unwanted deserialization. Fixed <rdar://problem/9399352>. llvm-svn: 131021
* Replace calls to HandleCommand in lldb core with more appropriateCaroline Tice2011-05-063-84/+183
| | | | | | | direct function calls. As part of this, collect code that processes arguments & options for aliases into a single function. llvm-svn: 131020
* Fix false positive warning about uninitialized variable.Cameron Esfahani2011-05-061-1/+1
| | | | llvm-svn: 131019
* Per Richard's suggestion, rename DefLoc to DefaultLoc where it appears.Alexis Hunt2011-05-065-32/+31
| | | | llvm-svn: 131018
* Fix diagnostics to start with a lower case letterAlexis Hunt2011-05-062-3/+3
| | | | llvm-svn: 131017
* It's valid to take the blockaddress of a different function, so remove thisNick Lewycky2011-05-062-2/+30
| | | | | | | assert in the bitcode writer. No change needed because the ValueEnumerator holds a whole-module numbering anyhow. Fixes PR9857! llvm-svn: 131016
* 80 col violations.Evan Cheng2011-05-061-3/+7
| | | | llvm-svn: 131015
* Add support for Microsoft __if_exists and __if_not_exists construct inside ↵Francois Pichet2011-05-066-1/+124
| | | | | | | | | | | | function definition. Allow to include or exclude code depending on if a symbol exists or not. Just like a #ifdef but for C/C++ symbols. More doc: http://msdn.microsoft.com/en-us/library/x7wy9xh3(v=VS.100).aspx Support at class and namespace scopes will be added later. llvm-svn: 131014
* Modify some deleted function methods to better reflect reality:Alexis Hunt2011-05-0621-48/+72
| | | | | | | | | | | | | | | | | | | | - New isDefined() function checks for deletedness - isThisDeclarationADefinition checks for deletedness - New doesThisDeclarationHaveABody() does what isThisDeclarationADefinition() used to do - The IsDeleted bit is not propagated across redeclarations - isDeleted() now checks the canoncial declaration - New isDeletedAsWritten() does what it says on the tin. - isUserProvided() now correct (thanks Richard!) This fixes the bug that we weren't catching void foo() = delete; void foo() {} as being a redefinition. llvm-svn: 131013
* Make the logic for determining function alignment more explicit. No ↵Eli Friedman2011-05-0629-101/+72
| | | | | | functionality change. llvm-svn: 131012
* For a test with unexpected success status, we also dump its session info ↵Johnny Chen2011-05-062-8/+32
| | | | | | into a unique file. llvm-svn: 131011
* ScopInfo: Do not return reference to member variable 'domain'.Tobias Grosser2011-05-066-6/+17
| | | | | | | | Instead of returning a pointer to the domain, we return a new copy of it. This is safer, as we do not give access to internal objects. It is also not expensive, as isl will just increment a reference counter. llvm-svn: 131010
* Dependences: Add interface to retrieve dependences.Tobias Grosser2011-05-062-0/+40
| | | | llvm-svn: 131009
* Use array_lengthof. No functional change.Eli Friedman2011-05-061-3/+1
| | | | llvm-svn: 131008
* Iterate backwards over debug locations when splitting them so they can be ↵Jakob Stoklund Olesen2011-05-061-1/+4
| | | | | | | | safely erased. This should unbreak dragonegg-i386-linux and build-self-4-mingw32. llvm-svn: 131007
* Improve diagnostics for some parse errors. Not asserting when a user inputJim Grosbach2011-05-061-7/+3
| | | | | | error is detected is a good thing. llvm-svn: 131005
* ParseFile() may throw, so extend the try/catch to handle that.Jim Grosbach2011-05-061-11/+11
| | | | llvm-svn: 131004
* Make the log message & setter match for "dyld/shlib". The ↵Jim Ingham2011-05-061-1/+1
| | | | | | "ListLogCategories" output should really be auto-generated from the settings so you can't make this sort of mistake... llvm-svn: 131003
* Move few target-dependant tests to appropriate directories.Galina Kistanova2011-05-066-0/+15
| | | | llvm-svn: 131002
* Typo: Reviewed by Alistair.Andrew Trick2011-05-061-1/+1
| | | | llvm-svn: 131001
* Don't emit nsw flags for vector operations; there's basically no benefit, ↵Eli Friedman2011-05-064-64/+61
| | | | | | and a lot of downside (like PR9850, which is about clang's xmmintrin.h making an unexpected transformation on an expression involving _mm_add_epi32). llvm-svn: 131000
* Pass -disable-cfi to llc.Rafael Espindola2011-05-065-5/+5
| | | | llvm-svn: 130999
* Update LiveDebugVariables after live range splitting.Jakob Stoklund Olesen2011-05-064-3/+165
| | | | | | | | | | | | After a virtual register is split, update any debug user variables that resided in the old register. This ensures that the LiveDebugVariables are still correct after register allocation. This may create DBG_VALUE instructions that place a user variable in a register in parts of the function and in a stack slot in other parts. DwarfDebug currently doesn't support that. llvm-svn: 130998
* Use TargetMachine hooks to properly print debug variable locations.Jakob Stoklund Olesen2011-05-061-6/+7
| | | | llvm-svn: 130997
OpenPOWER on IntegriCloud