summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Now that the default for Darwin platforms is to place the LSDA into the TEXTBill Wendling2010-03-1511-133/+6
| | | | | | section, remove the target-specific code that performs this. llvm-svn: 98580
* Implement support for the case when a reference to a addr-of-bb Chris Lattner2010-03-155-29/+116
| | | | | | | | | label is generated, but then the block is deleted. Since the value is undefined, we just emit the label right after the entry label of the function. It might matter that the label is in the same section as the function was afterall. llvm-svn: 98579
* use Mang->getSymbol() Chris Lattner2010-03-151-7/+1
| | | | llvm-svn: 98578
* use Mang->getSymbol() more.Chris Lattner2010-03-151-35/+17
| | | | llvm-svn: 98577
* Extend MemoryBuffer::getFile() to take an optional "stat" structureDouglas Gregor2010-03-152-9/+15
| | | | | | | pointer. If given, the structure will be set with the stat information from the file actually read. llvm-svn: 98575
* Move method FindPropertyVisibleInPrimaryClass() from ObjCContainerDecl to ↵Ted Kremenek2010-03-152-13/+13
| | | | | | | | ObjCInterfaceDecl. Also change this method to lookup property declarations using DeclContext::lookup(). llvm-svn: 98574
* Change ObjCCategoryDecl::FindPropertyDeclaration() to lookupTed Kremenek2010-03-152-34/+43
| | | | | | property decls using DeclContext::lookup(). llvm-svn: 98571
* Make 'findPropertyDecl()' a static method of ObjCPropertyDecl.Ted Kremenek2010-03-153-14/+21
| | | | llvm-svn: 98570
* Create SDDbgValue for dbg_value intrinsics and remember its connections with ↵Devang Patel2010-03-151-5/+28
| | | | | | | | DAG nodes. This is a work in progress. Patch by Dale Johannesen! llvm-svn: 98568
* Fix the case when a reference to an address taken BB is emitted in oneChris Lattner2010-03-153-7/+138
| | | | | | | | function, then the BB is RAUW'd before the definition is emitted. There are still two cases not being handled, but this should improve us back to the situation before I touched anything. llvm-svn: 98566
* In "empty" bb, the return instruction may not be first instruction, if dbg ↵Devang Patel2010-03-151-1/+1
| | | | | | value intrinsics are present in this bb. Use terminator to find return instructions. llvm-svn: 98565
* Place the LSDA into the TEXT section for x86 Darwin. If the global it's pointingBill Wendling2010-03-153-46/+29
| | | | | | | | | | | to is local to the translation unit, we need to place fill the value of that symbol into the non-lazy pointer. This should conclude all Darwin changes for placing the LSDA into the TEXT section. There is some cleanup to do. I.e., there's no longer a special need for target-specific code here. But that can come later. llvm-svn: 98564
* Avoid sibcall optimization if either caller or callee is using sret semantics.Evan Cheng2010-03-152-3/+12
| | | | llvm-svn: 98561
* Add 'expected-note'Ted Kremenek2010-03-151-1/+1
| | | | llvm-svn: 98560
* Correctly determine if the @property has been previously declared. IfTed Kremenek2010-03-152-7/+25
| | | | | | | a property has the same name as the ivar it wraps then the old logic wouldn't find the previous property declaration. llvm-svn: 98559
* revert r98550, it isn't necessary or sufficient.Chris Lattner2010-03-151-15/+3
| | | | llvm-svn: 98558
* objective-c++ must take into account qualifiers when Fariborz Jahanian2010-03-152-0/+18
| | | | | | considering valid objc pointer converions. llvm-svn: 98557
* Emit dwarf variable info communicated by code generator through DBG_VALUE ↵Devang Patel2010-03-154-14/+107
| | | | | | | | machine instructions. This is a work in progress. llvm-svn: 98556
* Add comment to CFG to 'buildCFG()' arguments indicating that scopeTed Kremenek2010-03-151-1/+2
| | | | | | support is not fully implemented. llvm-svn: 98555
* Rename clang_constructUSR_ObjCategory to clang_constructUSR_ObjCCategory.Ted Kremenek2010-03-153-3/+3
| | | | | | (there was a missing 'C'). llvm-svn: 98554
* Remove useless forward decl.Kovarththanan Rajaratnam2010-03-151-5/+4
| | | | llvm-svn: 98553
* don't eliminate address-taken blocks here.Chris Lattner2010-03-151-3/+15
| | | | llvm-svn: 98550
* SIGN_EXTEND from the same type as the dest is valid.Chris Lattner2010-03-151-1/+1
| | | | llvm-svn: 98548
* sink the call to VT.getSizeInBits() down into its uses,Chris Lattner2010-03-151-7/+5
| | | | | | not all unary nodes necessarily have a simple result type. llvm-svn: 98547
* During C++ name lookup, use DeclContext::Equals() rather thanDouglas Gregor2010-03-153-6/+23
| | | | | | | comparing DeclContext pointers, to avoid having to remember to call getPrimaryContext() everywhere. This is the last part PR6594. llvm-svn: 98546
* Implement C++ [temp.local]p8, which specifies that a templateDouglas Gregor2010-03-154-10/+152
| | | | | | | | | | | parameter hides a namespace-scope declararion with the same name in an out-of-line definition of a template. The lookup requires a strange interleaving of lexical and semantic scopes (go C++), which I have not yet handled in the typo correction/code completion path. Fixes PR6594. llvm-svn: 98544
* Treat copysignl like the other copysign functions.Duncan Sands2010-03-151-1/+1
| | | | llvm-svn: 98542
* Add support for -Wwrite-strings. Patch by Mike M! Fixes PR 4804.John McCall2010-03-157-3/+17
| | | | llvm-svn: 98541
* Remember declaration scope qualifiers in the AST. Imposes no memory overheadJohn McCall2010-03-1510-26/+281
| | | | | | | | | | | on unqualified declarations. Patch by Enea Zaffanella! Minimal adjustments: allocate the ExtInfo nodes with the ASTContext and delete them during Destroy(). I audited a bunch of Destroy methods at the same time, to ensure that the correct teardown was being done. llvm-svn: 98540
* Remember access paths for visible conversion decls.John McCall2010-03-153-122/+165
| | | | llvm-svn: 98539
* Don't save a temporary string into a StringRef field.Jeffrey Yasskin2010-03-151-1/+1
| | | | llvm-svn: 98538
* fix MCSectionELF to not leak memory, just like I did for MCSymbol.Chris Lattner2010-03-153-9/+12
| | | | | | | MCSectionMachO is already fine (yay for fixed size arrays?), MCSectionCOFF still leaks. llvm-svn: 98537
* fix a memory leak yjasskin pointed out: MCSymbol is bump pointerChris Lattner2010-03-153-19/+22
| | | | | | | | | | allocated and thus not freed. This is cool except that it contains and std::string so the string data didn't get freed. In any case there is no reason to redundantly store the string data in the MCSymbol anyway, just make the MCSymbol ref the string data in the MCContext StringMap. llvm-svn: 98536
* eliminate some #if 0 code I added in r96905, type inference Chris Lattner2010-03-151-18/+0
| | | | | | now enforces that input/output named values have hte same type. llvm-svn: 98535
* Completely rewrite tblgen's type inference mechanism,Chris Lattner2010-03-157-458/+733
| | | | | | | | | | | | | | | | | | | | | | | | changing the primary datastructure from being a "std::vector<unsigned char>" to being a new TypeSet class that actually has (gasp) invariants! This changes more things than I remember, but one major innovation here is that it enforces that named input values agree in type with their output values. This also eliminates code that transparently assumes (in some cases) that SDNodeXForm input/output types are the same, because this is wrong in many case. This also eliminates a bug which caused a lot of ambiguous patterns to go undetected, where a register class would sometimes pick the first possible type, causing an ambiguous pattern to get arbitrary results. With all the recent target changes, this causes no functionality change! llvm-svn: 98534
* MachineMove ctor doesn't need to to mutate input, add 'const'Chris Lattner2010-03-151-1/+2
| | | | llvm-svn: 98533
* do some serious surgery on CellSPU to get it back into a worldChris Lattner2010-03-154-38/+50
| | | | | | where it uses types consistently. llvm-svn: 98532
* fix a few more ambiguous types.Chris Lattner2010-03-152-4/+4
| | | | llvm-svn: 98531
* add some missing typesChris Lattner2010-03-151-2/+2
| | | | llvm-svn: 98530
* Tell Valgrind when we modify already-executed machine code so it knowsJeffrey Yasskin2010-03-1511-13/+290
| | | | | | | to re-instrument the code. We depend on the system valgrind.h to avoid adding a new license. llvm-svn: 98529
* various cleanups from danielChris Lattner2010-03-151-8/+8
| | | | llvm-svn: 98528
* fix an ambiguous pattern, contrary to expectations, scalar_to_vectorChris Lattner2010-03-151-1/+1
| | | | | | | doesn't have a type constraint on the scalar because we don't have an 'sAny' type. llvm-svn: 98527
* remove dead method.Chris Lattner2010-03-152-11/+0
| | | | llvm-svn: 98526
* don't forget to close a FD on an error condition, found byChris Lattner2010-03-141-1/+2
| | | | | | cppcheck, PR6617. Patch by Ettl Martin! llvm-svn: 98525
* tidy up and expound more on how half-float works.Chris Lattner2010-03-141-14/+21
| | | | llvm-svn: 98524
* tidy indentationChris Lattner2010-03-141-3/+3
| | | | llvm-svn: 98523
* no really, all 64-bit cpu's have cmov support. This shouldChris Lattner2010-03-141-1/+6
| | | | | | fix the rest of the buildbot failures on non-x86 hosts. llvm-svn: 98522
* filecheckize a test and mark these wiht a cpu so it passesChris Lattner2010-03-143-6/+13
| | | | | | on hosts without cmovs. llvm-svn: 98521
* all 64-bit cpus have cmov, this should fix CodeGen/X86/cmov.llChris Lattner2010-03-141-1/+2
| | | | | | (at least) on non-x86 builders. llvm-svn: 98520
* Remove pointless forward declaration, MSVC got confused by this.Benjamin Kramer2010-03-141-1/+0
| | | | llvm-svn: 98519
OpenPOWER on IntegriCloud