summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Teach ASTUnit to save the specified target features, sinceDouglas Gregor2011-01-273-1/+14
| | | | | | | TargetInfo::CreateTargetInfo() mangles the target options in a way that is not idempotent. Fixes <rdar://problem/8807535>. llvm-svn: 124382
* While legalizing SDValues do not drop SDDbgValues, trasfer them to new legal ↵Devang Patel2011-01-272-1/+4
| | | | | | | | nodes. Take 2. This includes fix for dragonegg crash. llvm-svn: 124380
* Add support for specifying register name in cfi-register/offset/defRoman Divacky2011-01-272-4/+24
| | | | | | as well as register number. llvm-svn: 124379
* Introduce virtual ParseRegister method in TargetAsmParser.Roman Divacky2011-01-274-6/+21
| | | | | | Create override of this method in X86/ARM/MBlaze. llvm-svn: 124378
* Add libclang functions to determine the const/volatile/restrictDouglas Gregor2011-01-276-2/+47
| | | | | | qualifiers on a CXType. Patch from Stefan Seefeld, test by me. llvm-svn: 124377
* [analyzer] Fix crash when handling dot syntax on 'super'.Argyrios Kyrtzidis2011-01-273-7/+20
| | | | llvm-svn: 124376
* Fix indentation.Jay Foad2011-01-271-9/+9
| | | | llvm-svn: 124375
* TextDiagnosticPrinter.cpp: Show diagnostics as far as possible even with ↵Axel Naumann2011-01-274-77/+134
| | | | | | | | | | | | | | invalid PresomedLoc, instead of just silencing it. FileManager.cpp: Allow virtual files in nonexistent directories. FileManager.cpp: Close FileDescriptor for virtual files that correspond to actual files. FileManager.cpp: Enable virtual files to be created even for files that were flagged as NON_EXISTENT_FILE, e.g. by a prior (unsuccessful) addFile(). ASTReader.cpp: Read a PCH even if the original source files cannot be found. Add a test for reading a PCH of a file that has been removed and diagnostics referencing that file. llvm-svn: 124374
* Do a proper recursive lookup when deciding whether a class's usualJohn McCall2011-01-2710-81/+248
| | | | | | | | | deallocation function has a two-argument form. Store the result of this check in new[] and delete[] nodes. Fixes rdar://problem/8913519 llvm-svn: 124373
* Updated Xcode project versions: lldb-45 and debugserver-130 Greg Clayton2011-01-273-16/+16
| | | | llvm-svn: 124372
* Improved support for GCC complex integers.Greg Clayton2011-01-271-1/+1
| | | | llvm-svn: 124371
* Add DenseSet::resize for API parity with DenseMap::resize.Nick Lewycky2011-01-271-0/+3
| | | | llvm-svn: 124370
* Finally tracked down the racy condition that would hose up our debugGreg Clayton2011-01-275-112/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sessions: When continue packet has been sent and an interrupt packet was quickly sent, it would get read at the same time: $c#00\x03 There was an error where the packet end index was always being computed incorrectly by debugserver, but it wouldn't matter if there weren't extra bytes on the end (the hex \x03 interrupt byte in this case). The first '$' last 3 bytes of the data in the packet buffer were being trimmed (trying to trim the '#' + checksum (#XX)) which made: c# And this would then be passed to the handle routine for the 'c' packet which would see an extra character at the end and assume it was going to be in the form c[addr] where "[addr]" was a hex address to resume at and this would result in a malformed packet response. This is now fixed and everything works great. Another issue was issuing async packets correctly by doing correct handshakes between the thread that wants to send the async packet, and the thread that is tracking the current run. Added a write lock to the communication class as well to make sure you never get two threads trying to write data at the same time. This wasn't happening, but it is a good idea to make sure it doesn't. llvm-svn: 124369
* Fix surprising missed optimization in mergefunc where we forgot to considerNick Lewycky2011-01-272-3/+88
| | | | | | that relationships like "i8* null" is equivalent to "i32* null". llvm-svn: 124368
* Provide Type::castAs<>, which is to getAs<> what cast<> is to dyn_cast<>.John McCall2011-01-271-9/+51
| | | | | | | Also provide a method to grab the base element type of a type without stressing out over qualifiers (but give it a nice scary name). llvm-svn: 124367
* Don't infinitely recurse! Patch by Marius Wachtler!Chris Lattner2011-01-271-1/+1
| | | | llvm-svn: 124366
* Avoid modifying the OneClassForEachPhysReg map while iterating over it.Bob Wilson2011-01-271-2/+6
| | | | | | | | | Linear scan regalloc is currently assuming that any register aliased with a member of a regclass must also be in at least one regclass. That is not always true. For example, for X86, RIP is in a regclass but IP is not. If you're unlucky, this can cause a crash by invalidating the iterator. llvm-svn: 124365
* Fix whitespace.NAKAMURA Takumi2011-01-279-2110/+2109
| | | | llvm-svn: 124364
* 7bit-ize.NAKAMURA Takumi2011-01-279-36/+36
| | | | llvm-svn: 124363
* Fix HTML highlighting and add missing line.Ted Kremenek2011-01-271-1/+2
| | | | llvm-svn: 124362
* Fix a few typos in HTML documentation.Ted Kremenek2011-01-271-3/+3
| | | | llvm-svn: 124361
* Hook up attribute ns_consumes_self in the ObjC retain/release checker in the ↵Ted Kremenek2011-01-274-1/+61
| | | | | | static analyzer. llvm-svn: 124360
* Changed the SymbolFile::FindFunction() function calls to only return Greg Clayton2011-01-2718-194/+330
| | | | | | | | | | | | | | | | | | lldb_private::Function objects. Previously the SymbolFileSymtab subclass would return lldb_private::Symbol objects when it was asked to find functions. The Module::FindFunctions (...) now take a boolean "bool include_symbols" so that the module can track down functions and symbols, yet functions are found by the SymbolFile plug-ins (through the SymbolVendor class), and symbols are gotten through the ObjectFile plug-ins. Fixed and issue where the DWARF parser might run into incomplete class member function defintions which would make clang mad when we tried to make certain member functions with invalid number of parameters (such as an operator= operator that had no parameters). Now we just avoid and don't complete these incomplete functions. llvm-svn: 124359
* Add a testcase for my last checkin.Eric Christopher2011-01-271-0/+21
| | | | llvm-svn: 124358
* Use the incoming VT not the VT of where we're trying to store to determineEric Christopher2011-01-271-2/+2
| | | | | | | | if we can store a value. Also, the exclusion is or, not and. Fixes rdar://8920247. llvm-svn: 124357
* Tweak -Wuninitialized fixit for '_Bool' types to be initialized to 0, and ↵Ted Kremenek2011-01-271-1/+1
| | | | | | C++ 'bool' types to false. llvm-svn: 124356
* Updated Clang to a version that supports propagatingSean Callanan2011-01-277-56/+61
| | | | | | | | the "virtual" flag when importing a C++ function declaration. Made changes to LLDB to support other changes in Clang. llvm-svn: 124355
* lib/Target/X86/X86ISelDAGToDAG.cpp: __main should be WINCALL64 on Win64.NAKAMURA Takumi2011-01-271-1/+1
| | | | | | CALL64 marks %xmm* as dead. llvm-svn: 124354
* Some cleanup to plugins/darwin.py after the recent additions of '-A arch' ↵Johnny Chen2011-01-272-10/+20
| | | | | | | | and '-C compiler' command line options to the test driver. Replace TestBase.getRunSpec() with TestBase.getRunOptions(). llvm-svn: 124353
* Teach -Wuninitialized to suggest "= false" for initializing bool variables.Ted Kremenek2011-01-271-0/+3
| | | | llvm-svn: 124352
* Notes on dynamic array cookies in MSVC.John McCall2011-01-271-0/+23
| | | | | | My thanks to chapuni for his help in investigating this. llvm-svn: 124351
* Try harder to not have unused variables.Matt Beaumont-Gay2011-01-271-0/+2
| | | | llvm-svn: 124350
* Import three interesting bits that apply only to C++ methods.John McCall2011-01-271-0/+3
| | | | llvm-svn: 124349
* Teach -Wuninitialized not to assert when analyzingTed Kremenek2011-01-272-8/+21
| | | | | | blocks that reference captured variables. llvm-svn: 124348
* Teach -Wuninitialized about ObjC fast enumeration loops.Ted Kremenek2011-01-272-9/+65
| | | | llvm-svn: 124347
* Opt-mode -Wunused-variable cleanupMatt Beaumont-Gay2011-01-271-4/+2
| | | | llvm-svn: 124346
* When we run into a template parameter that should have a defaultDouglas Gregor2011-01-272-1/+25
| | | | | | | | | | argument but doesn't (because previous template parameters had default arguments), clear out all of the default arguments so that we maintain the invariant that a template parameter has a default argument only if subsequence template parameters also have default arguments. Fixes a crash-on-invalid <rdar://problem/8913649>. llvm-svn: 124345
* Cope with parenthesized function declarators when emitting aDouglas Gregor2011-01-272-2/+12
| | | | | | diagnostic about ref-qualifiers where they do not belong. llvm-svn: 124344
* Add emulate_add_rd_sp_imm (SP plus immediate) to the g_arm_opcodes and ↵Johnny Chen2011-01-272-31/+86
| | | | | | | | g_thumb_opcodes tables. Change the data type of Context.arg2 to int64_t due to possible negative values. llvm-svn: 124343
* Added error reporting to IRForTarget so that theSean Callanan2011-01-273-11/+237
| | | | | | | user doesn't have to enable logging to see where something went wrong. llvm-svn: 124342
* Added support for some new environment variables within LLDB to enable someGreg Clayton2011-01-273-21/+95
| | | | | | | | | | | | | | | | extra launch options: LLDB_LAUNCH_FLAG_DISABLE_ASLR disables ASLR for all launched processes LLDB_LAUNCH_FLAG_DISABLE_STDIO will disable STDIO (reroute to "/dev/null") for all launched processes LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY will force all launched processes to be launched in new terminal windows. Also, don't init python if we never create a script interpreter. llvm-svn: 124341
* Fix a horrible bug in our handling of C-style casting, where a C-styleDouglas Gregor2011-01-277-45/+82
| | | | | | | | | | | derived-to-base cast that also casts away constness (one of the cases for static_cast followed by const_cast) would be treated as a bit-cast rather than a derived-to-base class, causing miscompiles and heartburn. Fixes <rdar://problem/8913298>. llvm-svn: 124340
* Reapply 124301Devang Patel2011-01-271-1/+5
| | | | llvm-svn: 124339
* Fixed a crasher when there is no log in Process::SetExitStatus (...).Greg Clayton2011-01-261-1/+2
| | | | llvm-svn: 124338
* Add emulate_vpush (stores multiple consecutive extension registers to the ↵Johnny Chen2011-01-261-3/+108
| | | | | | | | stack) entries to both the g_arm_opcodes and g_thumb_opcodes tables. llvm-svn: 124333
* Fixes an IRgen bug where __block variable isFariborz Jahanian2011-01-264-10/+47
| | | | | | | referenced in the block-literal initializer of that variable. // rdar://8893785 llvm-svn: 124332
* Initialize variable to get rid of clang warning.Bill Wendling2011-01-261-1/+1
| | | | llvm-svn: 124331
* Simplify User::operator delete().Jay Foad2011-01-262-10/+4
| | | | llvm-svn: 124330
* Add a MnemonicIsValid method to the asm matcher.Bob Wilson2011-01-261-0/+11
| | | | | | Patch by Bill Wendling. llvm-svn: 124328
* Revert 124301.Devang Patel2011-01-261-5/+1
| | | | llvm-svn: 124327
OpenPOWER on IntegriCloud