summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Alternate format string checking: warn of '%n' as being potentially insecure.Ted Kremenek2010-01-292-2/+12
| | | | llvm-svn: 94782
* Quick fix to make the header file for the enhancedSean Callanan2010-01-291-3/+3
| | | | | | | disassembly information have a better comment (and better guard macros). llvm-svn: 94781
* Added a bare-bones Makefile to build the enhanced disassemblySean Callanan2010-01-294-1/+108
| | | | | | | | library as a static and a shared library. Added dependencies so the target-specific enhanced disassembly info tables are built before the library. llvm-svn: 94780
* Recognize 'add_executable' when analyzing CMake files.Ted Kremenek2010-01-291-1/+2
| | | | llvm-svn: 94777
* Update CMake build.Ted Kremenek2010-01-291-0/+1
| | | | llvm-svn: 94776
* Add constant support to object size handling and remove defaultEric Christopher2010-01-292-10/+66
| | | | | | | | | lowering. We'll either figure it out, or not and be lowered by SelectionDAGBuild. Add test. llvm-svn: 94775
* Add precision/field width checking to AlternateCheckPrintfString().Ted Kremenek2010-01-293-12/+87
| | | | llvm-svn: 94774
* Generic reformatting and comment fixing. No functionality change.Bill Wendling2010-01-291-19/+20
| | | | llvm-svn: 94771
* Harden the CIndex implementation a bit, so that it does not assertDouglas Gregor2010-01-291-14/+21
| | | | | | when given bad inputs. llvm-svn: 94769
* When printing diagnostics in c-index-test, also print source rangesDouglas Gregor2010-01-294-12/+107
| | | | | | | | and fix-it information, so we can see everything in one place. Along the way, fix a few bugs with deserialization and query of diagnostics in CIndex. llvm-svn: 94768
* Add newline to debugging output, and fix some grammar-os in comment.Bill Wendling2010-01-291-5/+5
| | | | llvm-svn: 94765
* Added a custom TableGen backend to support theSean Callanan2010-01-295-0/+911
| | | | | | | enhanced disassembler, and the necessary makefile rules to build the table for X86. llvm-svn: 94764
* mem2reg erases the dbg.declare intrinsics that it converts to dbg.val intrinsicsVictor Hernandez2010-01-291-3/+13
| | | | llvm-svn: 94763
* Fix off-by-one error in ParseFormatSpecifier() when reporting the location ↵Ted Kremenek2010-01-281-3/+2
| | | | | | of a null character. llvm-svn: 94762
* Start fleshing out Sema::AlternateCheckPrintfString():Ted Kremenek2010-01-282-2/+99
| | | | | | | | | | - Add an anonymous class 'CheckPrintfHandler' which will do the checking of specific format specifiers - Add checking for using the '@' conversion specifier outside an ObjC string literal - Add checking for null characters within the string llvm-svn: 94761
* s/CGDebugInfo::getContext/CGDebugInfo::getContextDescriptor/g to avoid ↵Devang Patel2010-01-282-7/+8
| | | | | | confusion. llvm-svn: 94760
* Fix indentation.Devang Patel2010-01-281-30/+30
| | | | llvm-svn: 94758
* Assign the ordering of SDNodes in a much less intrusive fashion. After theBill Wendling2010-01-284-692/+172
| | | | | | | "visit*" method is called, take the newly created nodes, walk them in a DFS fashion, and if they don't have an ordering set, then give it one. llvm-svn: 94757
* Static methods do not need "this" pointer argument.Devang Patel2010-01-281-0/+5
| | | | llvm-svn: 94756
* Emit base classes info first, as expected by the debugger.Devang Patel2010-01-281-3/+3
| | | | llvm-svn: 94755
* Fix an incorrect union layout assert. Fixes PR6164.Anders Carlsson2010-01-282-1/+9
| | | | llvm-svn: 94754
* s/FunctionNames/DebugInfoNames/gDevang Patel2010-01-282-4/+4
| | | | llvm-svn: 94753
* Support some more options...Mikhail Glushenkov2010-01-281-0/+9
| | | | llvm-svn: 94752
* Emit vtable info.Devang Patel2010-01-282-1/+82
| | | | llvm-svn: 94751
* Remove the folding ruleDan Gohman2010-01-282-22/+84
| | | | | | | | | | | | | | | | | getelementptr (i8* inttoptr (i64 1 to i8*), i32 -1) to inttoptr (i64 0 to i8*) from the VMCore constant folder. It didn't handle sign-extension properly in the case where the source integer is smaller than a pointer size. And, it relied on an assumption about sizeof(i8). The Analysis constant folder still folds these kinds of things; it has access to TargetData, so it can do them right. Add a testcase which tests that the VMCore constant folder doesn't miscompile this, and that the Analysis folder does fold it. llvm-svn: 94750
* Replace strcpy with memcpy when we have the length around anyway.Benjamin Kramer2010-01-285-14/+14
| | | | llvm-svn: 94746
* Fix PR6165. The bug was that LHSKnownZero was being and'd with DemandedMaskDuncan Sands2010-01-282-2/+30
| | | | | | | when it should have been and'd with LowBits. Fix that and while there beef up the logic in the case of a negative LHS. llvm-svn: 94745
* Access control for surrogate function calls. Required a moderately gross hackJohn McCall2010-01-284-3/+22
| | | | | | to get the access bits set properly in conversion sets. llvm-svn: 94744
* Add llvm::Program::ChangeStderrToBinary().Douglas Gregor2010-01-283-2/+14
| | | | llvm-svn: 94743
* Check Type::isSized before calling ScalarEvolution::getAllocSizeExpr,Dan Gohman2010-01-281-21/+23
| | | | | | rather than after. llvm-svn: 94742
* convert the last 3 targets to use EmitFunctionBody() now thatChris Lattner2010-01-284-146/+48
| | | | | | | | | | | | it has before/end body hooks. lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | 49 ++----------- lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 87 ++++++------------------ lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 56 +++------------ test/CodeGen/XCore/ashr.ll | 2 4 files changed, 48 insertions(+), 146 deletions(-) llvm-svn: 94741
* Introduce serialization and deserialization of diagnostic informationDouglas Gregor2010-01-2815-10/+391
| | | | | | | | | | | | | | | | | so that CIndex can report diagnostics through the normal mechanisms even when executing Clang in a separate process. This applies both when performing code completion and when using ASTs as an intermediary for clang_createTranslationUnitFromSourceFile(). The serialized format is not perfect at the moment, because it does not encapsulate macro-instantiation information. Instead, it maps all source locations back to the instantiation location. However, it does maintain source-range and fix-it information. To get perfect fidelity from the serialized format would require serializing a large chunk of the source manager; at present, it isn't clear if this code will live long enough for that to matter. llvm-svn: 94740
* Add position of conversion specifier character to 'ConversionSpecifier'.Ted Kremenek2010-01-282-35/+51
| | | | llvm-svn: 94739
* Make getAlignOf return an i64, for consistency with getSizeOf andDan Gohman2010-01-282-4/+3
| | | | | | | getOffsetOf, and remove the comment about assuming i8 is byte-aligned, which is no longer applicable. llvm-svn: 94738
* Remove SCEVAllocSizeExpr and SCEVFieldOffsetExpr, and in their placeDan Gohman2010-01-286-207/+144
| | | | | | | | | | | | | | | | use plain SCEVUnknowns with ConstantExpr::getSizeOf and ConstantExpr::getOffsetOf constants. This eliminates a bunch of special-case code. Also add code for pattern-matching these expressions, for clients that want to recognize them. Move ScalarEvolution's logic for expanding array and vector sizeof expressions into an element count times the element size, to expose the multiplication to subsequent folding, into the regular constant folder. llvm-svn: 94737
* Rename namespace clang::printf to clang::analyze_printf to avoid problems ↵Ted Kremenek2010-01-282-5/+14
| | | | | | where the reference to 'printf' is ambiguous. llvm-svn: 94733
* add target hooks for emitting random gunk before and after the function body.Chris Lattner2010-01-282-0/+14
| | | | llvm-svn: 94732
* Fix a bug introduced by r94490 where it created a X86ISD::CMP whose output ↵Evan Cheng2010-01-282-8/+49
| | | | | | | | type is different from its inputs. This fixes PR6146. llvm-svn: 94731
* Access control for overloaded call operators. Not for surrogates yet,John McCall2010-01-282-0/+11
| | | | | | | | mostly because we're going to want a better diagnostic for conversions. Also this API needs to go back to sanity. llvm-svn: 94730
* switch blackfin to the default runOnMachineFunctionChris Lattner2010-01-281-43/+1
| | | | llvm-svn: 94729
* eliminate a now-useless class.Chris Lattner2010-01-281-13/+1
| | | | llvm-svn: 94728
* Switch MSP430, SPU, Sparc, and SystemZ to use EmitFunctionBody().Chris Lattner2010-01-286-284/+30
| | | | | | | Diffstat: 6 files changed, 30 insertions(+), 284 deletions(-) llvm-svn: 94727
* Update of 94055 to track the IR level call site information via an intrinsic.Jim Grosbach2010-01-287-8/+84
| | | | | | | This allows code gen and the exception table writer to cooperate to make sure landing pads are associated with the correct invoke locations. llvm-svn: 94726
* Access checking for overloaded operators.John McCall2010-01-284-5/+68
| | | | llvm-svn: 94725
* Fixes a rewrite bug rewriting nested ivars reference.Fariborz Jahanian2010-01-284-7/+45
| | | | | | (Radar 7583971). llvm-svn: 94724
* Record the death of ModuleProvier and GhostLinkage in the release notes andJeffrey Yasskin2010-01-281-1/+18
| | | | | | give upgrade instructions. llvm-svn: 94723
* Give AsmPrinter the most common expected implementation of Chris Lattner2010-01-285-114/+32
| | | | | | | | runOnMachineFunction, and switch PPC to use EmitFunctionBody. The two ppc asmprinters now don't heave to define runOnMachineFunction. llvm-svn: 94722
* Add placeholder function in Sema for new format string checking logic.Ted Kremenek2010-01-282-1/+25
| | | | | | | | This function will use the format string parsing logic in libAnalysis, and once it is shown to be better than the current implementation it will replace AlternateCheckPrintfString() entirely. llvm-svn: 94721
* Truncate the release notes so they're ready to accumulate notes for the 2.7 ↵Jeffrey Yasskin2010-01-281-438/+45
| | | | | | release. llvm-svn: 94720
* switch ARM to EmitFunctionBody().Chris Lattner2010-01-281-45/+3
| | | | llvm-svn: 94719
OpenPOWER on IntegriCloud