Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Introduce CodeGenModule::GetTargetTypeStoreSize() to calculate the store size | Ken Dyck | 2010-01-26 | 4 | -7/+16 |
| | | | | | | of LLVM types in character units. llvm-svn: 94542 | ||||
* | Avoid some unnecessary copying of unresolved lookup results. | John McCall | 2010-01-26 | 1 | -16/+12 |
| | | | | llvm-svn: 94531 | ||||
* | Handle redeclarations found by ADL deterministically and reasonably. | John McCall | 2010-01-26 | 4 | -16/+87 |
| | | | | | | | | | This solution relies on an O(n) scan of redeclarations, which means it might scale poorly in crazy cases with tons of redeclarations brought in by a ton of distinct associated namespaces. I believe that avoiding this is not worth the common-case cost. llvm-svn: 94530 | ||||
* | Correctly treat 64 bit integers specified via the mode attribute as the 'long' | Chandler Carruth | 2010-01-26 | 1 | -2/+8 |
| | | | | | | | | | | type when that type is 64 bits wide, and the 'long long' type when 'long' is only 32 bits wide. This fixes PR6108. Also adds a bunch of test cases to ensure proper conversion between equally sized standard types and mode-specified types on both 32 and 64 bit targets. llvm-svn: 94527 | ||||
* | If a global variable has an initializer with side effects, it can never be ↵ | Anders Carlsson | 2010-01-26 | 1 | -3/+2 |
| | | | | | | deferred (even if it's in an anonymous namespace). llvm-svn: 94525 | ||||
* | Allow ADL to find functions imported by using decls. Leave wordy comment | John McCall | 2010-01-26 | 2 | -12/+21 |
| | | | | | | about interaction between ADL and default arguments. Shrug shoulders, commit. llvm-svn: 94524 | ||||
* | Fix another debug info crash with virtual bases. | Anders Carlsson | 2010-01-26 | 1 | -4/+11 |
| | | | | llvm-svn: 94520 | ||||
* | Fix the test I broke, and also fix a crash when declaring a virtual ↵ | Anders Carlsson | 2010-01-26 | 2 | -22/+26 |
| | | | | | | destructor. Add debug info support for pure virtual member functions. llvm-svn: 94519 | ||||
* | Factor creating the DISubprogram for a member function out into a separate ↵ | Anders Carlsson | 2010-01-26 | 2 | -51/+68 |
| | | | | | | function. llvm-svn: 94513 | ||||
* | Simplify CGDebugInfo::CollectCXXMemberFunctions a little. More to come. | Anders Carlsson | 2010-01-26 | 1 | -6/+6 |
| | | | | llvm-svn: 94511 | ||||
* | Make sure to always mark a global variable as not being constant if it has a ↵ | Anders Carlsson | 2010-01-26 | 1 | -1/+6 |
| | | | | | | C++ initializer. llvm-svn: 94504 | ||||
* | Simplify. | Daniel Dunbar | 2010-01-26 | 2 | -24/+5 |
| | | | | llvm-svn: 94503 | ||||
* | Be sure to track the non-virtual part of the vcall offset in complex | Mike Stump | 2010-01-26 | 1 | -2/+5 |
| | | | | | | | | | multiple inheritance cases. WIP. This fixes 20% of the outstanding problems found by the randomized tester. llvm-svn: 94499 | ||||
* | Preserve access bits through overload resolution much better. Some | John McCall | 2010-01-26 | 6 | -103/+86 |
| | | | | | | general refactoring in operator resolution. llvm-svn: 94498 | ||||
* | Driver/Darwin: Honor IPHONEOS_DEPLOYMENT_TARGET. | Daniel Dunbar | 2010-01-26 | 2 | -15/+35 |
| | | | | llvm-svn: 94488 | ||||
* | Driver/Darwin: Stuff iPhoneOS into environment portion of the (llvm/clang) ↵ | Daniel Dunbar | 2010-01-26 | 2 | -73/+72 |
| | | | | | | triple instead of keying off architecture. Also, fix version define to properly include the revision/micro component of the version number. llvm-svn: 94487 | ||||
* | Pass access specifiers around in overload resolution. | John McCall | 2010-01-26 | 7 | -54/+107 |
| | | | | llvm-svn: 94485 | ||||
* | Fix a regression caused by my rewriting of cast of ivar | Fariborz Jahanian | 2010-01-26 | 1 | -9/+11 |
| | | | | | | access (was radar 7575882). llvm-svn: 94481 | ||||
* | Fixup a missing vcall entry. WIP. | Mike Stump | 2010-01-26 | 1 | -12/+257 |
| | | | | llvm-svn: 94478 | ||||
* | First cut at emitting inheritance info. | Devang Patel | 2010-01-25 | 2 | -1/+43 |
| | | | | llvm-svn: 94473 | ||||
* | Emit debug info for virtual functions. | Devang Patel | 2010-01-25 | 1 | -2/+12 |
| | | | | llvm-svn: 94467 | ||||
* | Fixit to remove 'volatile' in file-scope 'asm volatile'. | John McCall | 2010-01-25 | 1 | -1/+6 |
| | | | | llvm-svn: 94466 | ||||
* | Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bc | Daniel Dunbar | 2010-01-25 | 2 | -13/+28 |
| | | | | | | file. llvm-svn: 94463 | ||||
* | Warn on top-level 'asm volatile' (instead of misparsing it). | John McCall | 2010-01-25 | 1 | -0/+5 |
| | | | | | | "Fixes" rdar://problem/7574870 llvm-svn: 94458 | ||||
* | global variable that binds reference to a non-lvalue reproted | Fariborz Jahanian | 2010-01-25 | 1 | -2/+7 |
| | | | | | | as NYI now. llvm-svn: 94453 | ||||
* | Fixes a rewriting bug of access ivar of a variable cast | Fariborz Jahanian | 2010-01-25 | 1 | -1/+10 |
| | | | | | | to subclass. (Fixes radar 7575882). llvm-svn: 94444 | ||||
* | Fix a code gen. bug involving compiling global references. | Fariborz Jahanian | 2010-01-25 | 1 | -2/+2 |
| | | | | | | (fixes radar 7574896). llvm-svn: 94434 | ||||
* | Move BugReporter.h, PathDiagnostic.h, and BugType.h to ↵ | Ted Kremenek | 2010-01-25 | 28 | -37/+37 |
| | | | | | | 'include/Checker/BugReporter' llvm-svn: 94428 | ||||
* | Code simplification; this should have no visible effects. | Eli Friedman | 2010-01-25 | 1 | -33/+2 |
| | | | | llvm-svn: 94427 | ||||
* | Move the type specifier location for elaborated-type-specifiers from | Douglas Gregor | 2010-01-25 | 2 | -3/+9 |
| | | | | | | | the tag kind (union, struct, class, enum) over to the name of the tag, if there is a name, since most clients want to point at the name. llvm-svn: 94424 | ||||
* | Update C++ include paths for Exherbo, by Ingmar Vanhassel. | Benjamin Kramer | 2010-01-25 | 1 | -3/+3 |
| | | | | llvm-svn: 94420 | ||||
* | Add missing file. | Ted Kremenek | 2010-01-25 | 1 | -0/+21 |
| | | | | llvm-svn: 94407 | ||||
* | Split libAnalysis into two libraries: libAnalysis and libChecker. | Ted Kremenek | 2010-01-25 | 75 | -242/+226 |
| | | | | | | | | | | | | | | | | | | | | | | | | | (1) libAnalysis is a generic analysis library that can be used by Sema. It defines the CFG, basic dataflow analysis primitives, and inexpensive flow-sensitive analyses (e.g. LiveVariables). (2) libChecker contains the guts of the static analyzer, incuding the path-sensitive analysis engine and domain-specific checks. Now any clients that want to use the frontend to build their own tools don't need to link in the entire static analyzer. This change exposes various obvious cleanups that can be made to the layout of files and headers in libChecker. More changes pending. :) This change also exposed a layering violation between AnalysisContext and MemRegion. BlockInvocationContext shouldn't explicitly know about BlockDataRegions. For now I've removed the BlockDataRegion* from BlockInvocationContext (removing context-sensitivity; although this wasn't used yet). We need to have a better way to extend BlockInvocationContext (and any LocationContext) to add context-sensitivty. llvm-svn: 94406 | ||||
* | fix rdar://7556129 a crash in blocks debug info codegen. | Chris Lattner | 2010-01-25 | 1 | -2/+3 |
| | | | | llvm-svn: 94402 | ||||
* | simplify code. | Chris Lattner | 2010-01-25 | 2 | -23/+13 |
| | | | | llvm-svn: 94401 | ||||
* | ASTUnit: Don't check that input files exist when parsing ASTs from the command | Daniel Dunbar | 2010-01-25 | 2 | -6/+9 |
| | | | | | | | line -- they may be remapped (fake) files. This is useful for testing parsing entirely from memory. llvm-svn: 94395 | ||||
* | -fno-rtti is now the default. | Chris Lattner | 2010-01-24 | 11 | -11/+0 |
| | | | | llvm-svn: 94379 | ||||
* | Implement [dcl.fct.spec]p6. | Anders Carlsson | 2010-01-24 | 1 | -0/+22 |
| | | | | llvm-svn: 94365 | ||||
* | Implement instantiation of AsmStmts (Crazy, I know) | Anders Carlsson | 2010-01-24 | 5 | -7/+92 |
| | | | | llvm-svn: 94361 | ||||
* | Mangle static variables with an extra name to distinguish them from ↵ | Alexis Hunt | 2010-01-24 | 1 | -6/+11 |
| | | | | | | | | non-static variables in the same TU. Fixes PR5966 for real this time; also reverts r92911, which had a incorrect fix. llvm-svn: 94352 | ||||
* | fix PR6034, a crash on invalid where the switch stack would get | Chris Lattner | 2010-01-24 | 3 | -8/+20 |
| | | | | | | unbalanced. llvm-svn: 94347 | ||||
* | Fix a nasty bug where temporaries weren't marked as being conditional in ↵ | Anders Carlsson | 2010-01-24 | 2 | -0/+11 |
| | | | | | | some cases. llvm-svn: 94341 | ||||
* | Use new initialization code when dealing with [dcl.init.aggr]p12. This fixes ↵ | Anders Carlsson | 2010-01-24 | 1 | -16/+28 |
| | | | | | | the bug where array elements and member initializers weren't copied correctly. llvm-svn: 94340 | ||||
* | Change all InitializedEntity pointers over to be references. | Anders Carlsson | 2010-01-23 | 1 | -137/+81 |
| | | | | llvm-svn: 94335 | ||||
* | Start passing InitializedEntity to CheckDesignatedInitializer. | Anders Carlsson | 2010-01-23 | 1 | -9/+22 |
| | | | | llvm-svn: 94334 | ||||
* | Preserve access for enum constants during template instantiation. | John McCall | 2010-01-23 | 1 | -0/+1 |
| | | | | llvm-svn: 94333 | ||||
* | More init work, adding more entity parameters. | Anders Carlsson | 2010-01-23 | 1 | -10/+27 |
| | | | | llvm-svn: 94332 | ||||
* | Use the new init code for member subobjects. | Anders Carlsson | 2010-01-23 | 1 | -6/+18 |
| | | | | llvm-svn: 94329 | ||||
* | Switch some array initialization over to the new init code. | Anders Carlsson | 2010-01-23 | 1 | -7/+22 |
| | | | | llvm-svn: 94327 | ||||
* | Baby steps towards migrating the InitListChecker over to the new ↵ | Anders Carlsson | 2010-01-23 | 1 | -33/+65 |
| | | | | | | initialization code. Pass an InitializedEntity pointer through to most init checker functions. Right now, it's ignored everywhere except when initializing vectors in C++. llvm-svn: 94325 |