summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* update unit test for api change.Chris Lattner2010-04-051-3/+1
| | | | llvm-svn: 100486
* stringref-ize the MemoryBuffer::get apis. This requiresChris Lattner2010-04-056-34/+27
| | | | | | a co-committed clang patch. llvm-svn: 100485
* Match MemoryBuffer API changes.Chris Lattner2010-04-055-14/+10
| | | | llvm-svn: 100484
* Fix possible null dereference by bailing out of ↵Ted Kremenek2010-04-051-1/+4
| | | | | | CheckObjCPropertyAttributes() early if the Decl* is null. llvm-svn: 100483
* Add nounwind.Evan Cheng2010-04-051-2/+2
| | | | llvm-svn: 100482
* Fix ADD32rr_alt instruction encoding bug. Patch by Marius Wachtler.Evan Cheng2010-04-051-1/+1
| | | | llvm-svn: 100480
* fix a really nasty bug that Evan was tracking in SCCP. When resolvingChris Lattner2010-04-051-29/+32
| | | | | | | | | | | | | | | | | | undefs in branches/switches, we have two cases: a branch on a literal undef or a branch on a symbolic value which is undef. If we have a literal undef, the code was correct: forcing it to a constant is the right thing to do. If we have a branch on a symbolic value that is undef, we should force the symbolic value to a constant, which then makes the successor block live. Forcing the condition of the branch to being a constant isn't safe if later paths become live and the value becomes overdefined. This is the case that 'forcedconstant' is designed to handle, so just use it. This fixes rdar://7765019 but there is no good testcase for this, the one I have is too insane to be useful in the future. llvm-svn: 100478
* GrrrrDouglas Gregor2010-04-051-1/+1
| | | | llvm-svn: 100476
* Try to de-bork build of WPADouglas Gregor2010-04-051-1/+2
| | | | llvm-svn: 100475
* IRgen: Move BitField LValues to just hold a reference to the CGBitFieldInfo.Daniel Dunbar2010-04-055-43/+52
| | | | | | | | | - Unfortunately, this requires some horrible code in CGObjCMac which always allocats a CGBitFieldInfo because we don't currently build a proper layout for Objective-C classes. It needs to be cleaned up, but I don't want the bit-field cleanups to be blocked on that. llvm-svn: 100474
* Extend the type printing policy to allow one to turn off the printingDouglas Gregor2010-04-054-15/+41
| | | | | | | of file locations for anonymous tag types (e.g., "enum <anonymous at t.h:15:6>"), which can get rather long. llvm-svn: 100470
* Print the errors when a clang test fails instead of just listing theJeffrey Yasskin2010-04-051-1/+1
| | | | | | failing test files. llvm-svn: 100469
* some code cleanups, use SwitchInst::findCaseValue, reduce indentationChris Lattner2010-04-051-62/+63
| | | | llvm-svn: 100468
* Code clean up.Evan Cheng2010-04-052-20/+18
| | | | llvm-svn: 100467
* Remove FIXME.Eric Christopher2010-04-051-2/+1
| | | | llvm-svn: 100466
* Clarify the ownership semantics of the Diagnostic object used byDouglas Gregor2010-04-055-38/+87
| | | | | | | | | ASTUnit. Previously, we would end up with use-after-free errors because the Diagnostic object would be creating in one place (say, CIndex) and its ownership would not be transferred into the ASTUnit. Fixes <rdar://problem/7818608>. llvm-svn: 100464
* Introduce MaybeOwningPtr, a smart pointer that may (or may not) haveDouglas Gregor2010-04-051-0/+92
| | | | | | | | ownership over the pointer it contains. Useful when we want to communicate ownership while still having several clients holding on to the same pointer *without* introducing reference counting. llvm-svn: 100463
* Emit debug info for objc getters and setters.Devang Patel2010-04-053-4/+24
| | | | llvm-svn: 100462
* Fix OProfileJITEventListener build for new DebugLoc.Jeffrey Yasskin2010-04-051-6/+7
| | | | llvm-svn: 100461
* Add a comment.Dan Gohman2010-04-051-0/+6
| | | | llvm-svn: 100459
* lowering a volatile llvm.memcpy to a libc memcpy is ok.Chris Lattner2010-04-051-1/+0
| | | | | | PR6779 llvm-svn: 100457
* Don't do code sinking on unreachable blocks. It's unprofitable and hazardous.Dan Gohman2010-04-052-0/+35
| | | | llvm-svn: 100455
* Add an isReachableFromEntry to MachineDominators, following the oneDan Gohman2010-04-051-2/+7
| | | | | | in Dominators. llvm-svn: 100454
* fix PR6780, properly handling the IR {|} escapes in inline asm strings.Chris Lattner2010-04-052-5/+21
| | | | llvm-svn: 100449
* Update to note that clang has a baseline now. Dropping x86-32 for MacOS.Tanya Lattner2010-04-051-6/+5
| | | | llvm-svn: 100447
* Make the ASTUnit constructor private; all ASTUnit clients should be using ↵Douglas Gregor2010-04-051-2/+2
| | | | | | the static factory functions llvm-svn: 100444
* fix PR6782, an accept invalid. We weren't emitting the diagnostic Chris Lattner2010-04-054-9/+23
| | | | | | returned by SetTypeSpecType. llvm-svn: 100443
* Minor ASTUnit cleanups:Douglas Gregor2010-04-054-24/+30
| | | | | | | | - Rename "Diagnostics" and related to "StoredDiagnostics", to better capture what we're actually storing. - Move SourceManager and FileManager to the heap. llvm-svn: 100441
* don't use emitlabel in the arm asm printer yet, the order Chris Lattner2010-04-051-2/+7
| | | | | | | isn't well specified. ARM really needs to have its instprinter finished at some point. llvm-svn: 100439
* Push const through the regex engine. Fixes some of the warnings in PR6616.Owen Anderson2010-04-052-44/+51
| | | | llvm-svn: 100438
* fix a couple problems I introduced handling symbolsChris Lattner2010-04-051-4/+10
| | | | | | with spaces in them. Sym->getName() != OS << *Sym llvm-svn: 100434
* IRgen: Lift BitFieldInfo to CGBitFieldInfo at namespace level.Daniel Dunbar2010-04-054-18/+16
| | | | llvm-svn: 100433
* Add a FIXME and reduce nesting.Daniel Dunbar2010-04-051-18/+16
| | | | llvm-svn: 100432
* Code completion results that refer to macros now get the cursor kindDouglas Gregor2010-04-053-3/+17
| | | | | | | of macro definitions when passed to CIndex. Add test for code completion of macros via CIndex. llvm-svn: 100431
* Always assume block-level expressions in the caller are alive when analyzingZhongxing Xu2010-04-052-2/+43
| | | | | | the callee. llvm-svn: 100429
* Since now we process regions in clusters when removing dead bindings, thisZhongxing Xu2010-04-051-8/+0
| | | | | | code can be removed. llvm-svn: 100428
* Disambiguate else.Benjamin Kramer2010-04-051-1/+2
| | | | llvm-svn: 100423
* trim some prototypes.Chris Lattner2010-04-052-2/+0
| | | | llvm-svn: 100420
* remove the now-redundant MMI pointer in SelectionDAG.Chris Lattner2010-04-054-54/+33
| | | | llvm-svn: 100419
* hopefully sate the clang self host build, which is apparently Chris Lattner2010-04-051-0/+1
| | | | | | | | | | | instantiating some folding set stuff that GCC isn't, requiring some types to not be incomplete. I don't know if clang is right or wrong, but unbreaking the bot is goodness. Here's the broken build: http://google1.osuosl.org:8011/builders/clang-x86_64-darwin10-selfhost/builds/1813/steps/compile.llvm.stage2/logs/stdio llvm-svn: 100418
* remove some redundant MMI arguments.Chris Lattner2010-04-054-14/+9
| | | | llvm-svn: 100417
* unthread MMI from FastISelChris Lattner2010-04-057-53/+38
| | | | llvm-svn: 100416
* remove the MMI pointer from MachineFrameInfo.Chris Lattner2010-04-056-62/+28
| | | | llvm-svn: 100415
* enhance MachineFunction to have a MMI pointer.Chris Lattner2010-04-053-9/+12
| | | | llvm-svn: 100414
* Add MC and LTO, two terms I just had to explain on IRC.Nick Lewycky2010-04-051-3/+17
| | | | llvm-svn: 100413
* simplify code.Chris Lattner2010-04-051-7/+4
| | | | llvm-svn: 100412
* prune #includes.Chris Lattner2010-04-051-9/+2
| | | | llvm-svn: 100411
* privatize more stuff, eliminate vtables.Chris Lattner2010-04-052-28/+28
| | | | llvm-svn: 100410
* reprivatize now that DwarfWriter is gone.Chris Lattner2010-04-052-4/+2
| | | | llvm-svn: 100409
* prune #includes, MMI can never be nullChris Lattner2010-04-052-5/+9
| | | | llvm-svn: 100408
OpenPOWER on IntegriCloud