summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Un-tabify.Evan Cheng2009-01-131-1/+1
| | | | llvm-svn: 62151
* Fix fallout from r62144. Evan, please double check this.Owen Anderson2009-01-131-4/+4
| | | | llvm-svn: 62150
* ccc: Add option groups.Daniel Dunbar2009-01-132-60/+106
| | | | | | | | | | - Simple mechanism for group together sets of options so the driver can efficiently deal with them as a group (i.e., for forwarding -i* to cc1). - Use to finish off the major missing pieces of Darwin/CC1 support. llvm-svn: 62149
* Warn when someone tries to pass a variable with a non-POD type to a varargs ↵Anders Carlsson2009-01-136-1/+96
| | | | | | function/method/block. llvm-svn: 62148
* Fix argument-passing bugs in a call to objectDouglas Gregor2009-01-133-13/+40
| | | | llvm-svn: 62147
* ccc: Darwin/CC1: Hardcode (for now) some -m options to match gcc.Daniel Dunbar2009-01-131-4/+19
| | | | llvm-svn: 62146
* ccc: Allow host to over-ride default arch based on command lineDaniel Dunbar2009-01-132-7/+15
| | | | | | arguments (e.g., -m32 and -m64). llvm-svn: 62145
* FIX llvm-gcc bootstrap on x86_64 linux. If a virtual register is copied to a ↵Evan Cheng2009-01-132-0/+97
| | | | | | physical register, it's not necessarily defined by a copy. We have to watch out it doesn't clobber any sub-register that might be live during its live interval. If the live interval crosses a basic block, then it's not safe to check with the less conservative check (by scanning uses and defs) because it's possible a sub-register might be live out of the block. llvm-svn: 62144
* Improve c++ methods printing in DeclContextPrinter.Zhongxing Xu2009-01-131-16/+39
| | | | llvm-svn: 62143
* add a fixme.Zhongxing Xu2009-01-131-0/+2
| | | | llvm-svn: 62142
* Improve DeclContextPrinter: print enum name.Zhongxing Xu2009-01-131-2/+8
| | | | llvm-svn: 62140
* Bug fix, __private_extern__ globals were always introducing a definition.Daniel Dunbar2009-01-132-10/+41
| | | | llvm-svn: 62139
* Add KillStruct to region store. Zhongxing Xu2009-01-132-10/+63
| | | | | | | | - put the killed region in the kill set. - set its default value to unknown. - removes all bindings for its subregions. llvm-svn: 62138
* Updated checker build.Ted Kremenek2009-01-131-1/+1
| | | | llvm-svn: 62137
* Add an initial framework of a DeclContextPrinter. It can print DeclContext andZhongxing Xu2009-01-133-0/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | its Decls in indented format. An Example: $ cat t.cpp class A { int a; void f(); }; void A::f() { a = 3; } $ clang -print-decl-contexts t.cpp [translation unit] 0x9754d7c <typedef> __builtin_va_list [class] A 0x9753310 <class> A 0x975ce20 <field> a <c++ method> f <c++ ctor> A <c++ ctor> A <c++ method> operator= <c++ dtor> ~A [c++ method] f [[0x9753310]] Some comments: '<>' indicates a declaration, '[]' indicates a definition, '[[ ]]' displays the semantic DeclContext which is different from the lexical DeclContext. The symbols printed can definitely be changed in the future. llvm-svn: 62136
* Patch to fix encoding of Enum bitfields in ObjC.Fariborz Jahanian2009-01-132-7/+51
| | | | llvm-svn: 62135
* This test now passes.Ted Kremenek2009-01-131-1/+0
| | | | llvm-svn: 62132
* ccc: Darwin/CC1: Be bug compatible with gcc in a corner case.Daniel Dunbar2009-01-131-4/+5
| | | | llvm-svn: 62131
* static analyzer: Handle casts from arrays to integers. This fixes PR 3297.Ted Kremenek2009-01-133-11/+59
| | | | llvm-svn: 62130
* Invert condition on branch (was causing RegionStore::ArrayToPointer to ↵Ted Kremenek2009-01-131-1/+1
| | | | | | return 'unknown' on most cases. llvm-svn: 62129
* Add the proper restrictions on the left-hand argument of a built-inDouglas Gregor2009-01-134-13/+41
| | | | | | assignment operator candidate (C++ [over.match.oper]p4). llvm-svn: 62128
* Use DebugInfo interface to lower dbg_* intrinsics.Devang Patel2009-01-1314-68/+91
| | | | llvm-svn: 62127
* Use DebugInfo interface to lower dbg_* intrinsics.Devang Patel2009-01-133-4/+3
| | | | llvm-svn: 62126
* Start using DebugInfo API to emit debug info.Devang Patel2009-01-131-11/+10
| | | | llvm-svn: 62125
* Make sure we don't name a constructor or destructor with a qualifiedDouglas Gregor2009-01-133-1/+14
| | | | | | type. It leads to very weird errors. llvm-svn: 62124
* Patch to implement code gen for aggrgate-valued property usedFariborz Jahanian2009-01-122-0/+25
| | | | | | to access a field of its type. llvm-svn: 62123
* Cleanup DeclContext::addDecl and DeclContext::insert interface, from Piotr RakDouglas Gregor2009-01-129-61/+49
| | | | llvm-svn: 62122
* Update C++ status and add a few more tests of overloading for member ↵Douglas Gregor2009-01-122-7/+24
| | | | | | function calls llvm-svn: 62121
* Document several current CodeGen limitations in LangRef.html.Dan Gohman2009-01-121-0/+12
| | | | | | Patches for any of these are welcome! llvm-svn: 62120
* Fix test case (incomplete "expected-warning" line)Ted Kremenek2009-01-121-1/+1
| | | | llvm-svn: 62119
* Emit debug info, only if at least one compile unit is seen.Devang Patel2009-01-121-2/+8
| | | | llvm-svn: 62118
* Patch by Roman Divacky:Ted Kremenek2009-01-123-9/+64
| | | | | | | | | Extend string-literal checking for printf() format string to handle conditional ternary operators where both sides are literals. This fixes PR 3319: http://llvm.org/bugs/show_bug.cgi?id=3319 llvm-svn: 62117
* If multiple compile units are seen then emit them independently. In other ↵Devang Patel2009-01-121-65/+74
| | | | | | | | words, do not force all DIEs into first, whatever it is, compile unit. Note, multiple compile unit support is not well tested (it did not work correctly until now anyway.) llvm-svn: 62116
* Avoid cast<>, use light weith wrapper directly.Devang Patel2009-01-121-3/+3
| | | | llvm-svn: 62115
* Use SrcLineInfo from DwarfWriter. The MachineModuleInfo copy will disappear ↵Devang Patel2009-01-121-12/+9
| | | | | | soon. llvm-svn: 62114
* Fix crasher due to use-after-release: DeclContext now owns all ↵Ted Kremenek2009-01-122-22/+0
| | | | | | ObjCMethodDecls, and shouldn't be released elsewhere. llvm-svn: 62113
* Implement support for anonymous structs and unions in C. Both C andDouglas Gregor2009-01-129-32/+126
| | | | | | | | | | | | | | C++ handle anonymous structs/unions in the same way. Addresses several bugs: <rdar://problem/6259534> <rdar://problem/6481130> <rdar://problem/6483159> The test case in PR clang/1750 now passes with -fsyntax-only, but CodeGen for inline assembler still fails. llvm-svn: 62112
* ccc: Bug fix, output can be NULL.Daniel Dunbar2009-01-121-1/+1
| | | | llvm-svn: 62108
* Enable recursive inlining. Reduce inlining thresholdDale Johannesen2009-01-123-8/+98
| | | | | | | back to 200; 400 seems to be too high, loses more than it gains. llvm-svn: 62107
* retain/release checker:Ted Kremenek2009-01-125-388/+395
| | | | | | | | | | | | | | - Refactor a bunch of logic in the retain/release checker, making it more condense and easier to read. - Add support for "Create" methods in the DiskArbitration framework retain/release tests: - Rename CFDate.m to retain-release.m, and move test from CFString.c to retain-release.m - Add DiskArbitration framework tests cases. - Add/refine and few more retain/release GC test cases. llvm-svn: 62106
* ccc: Even more Darwin/cc1 argument translation support.Daniel Dunbar2009-01-122-24/+39
| | | | llvm-svn: 62105
* Add classof() methods to support isa<> and other related facilities.Devang Patel2009-01-122-17/+76
| | | | llvm-svn: 62104
* The LLVM Assembly Language Reference incorrectly stated that theDan Gohman2009-01-121-2/+2
| | | | | | | prefix used for dll{import,export} is _imp__; it is actually __imp_. Patch by Mahadevan R! llvm-svn: 62103
* Fix the instructions to work even when PATH does not contain ".".Dan Gohman2009-01-121-1/+1
| | | | | | Thanks to Martin Geisse for pointing this out! llvm-svn: 62102
* (LLVM up) Match TargetData API change in LLVM TOT.Daniel Dunbar2009-01-124-12/+12
| | | | llvm-svn: 62101
* Rename getABITypeSize to getTypePaddedSize, asDuncan Sands2009-01-1253-150/+154
| | | | | | suggested by Chris. llvm-svn: 62099
* Patch to supprt case of readonly property being Fariborz Jahanian2009-01-127-43/+109
| | | | | | | | assigned to when it has user declared setter method defined in the class implementation (but no declaration in the class itself). llvm-svn: 62098
* ccc: Add leading space in -### output to match gcc.Daniel Dunbar2009-01-121-3/+3
| | | | llvm-svn: 62097
* Add DwarfWriter interface to mainipulate source location info.Devang Patel2009-01-122-45/+111
| | | | | | ( May be this info should be directly handled by the dwarf writer ? ) llvm-svn: 62096
* remove some dead options.Chris Lattner2009-01-121-10/+1
| | | | llvm-svn: 62095
OpenPOWER on IntegriCloud