summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixes a rewriting bug where order of constructor expression arguments did ↵Fariborz Jahanian2010-02-111-15/+28
| | | | | | | | | | not match order of constructor arguments (all block API specific). This was exposed only in a large block literal expression in a large file where PtrSet container size execceded its limit and required reallocation. Fixes radar 7638294 llvm-svn: 95936
* enhance llvm-mc -show-inst to print the enum of an instruction, like so:Chris Lattner2010-02-116-2/+59
| | | | | | | | | | testb %al, %al ## <MCInst #2412 TEST8rr ## <MCOperand Reg:2> ## <MCOperand Reg:2>> jne LBB1_7 ## <MCInst #938 JNE_1 ## <MCOperand Expr:(LBB1_7)>> llvm-svn: 95935
* When we have a dependent direct initializer but not a dependentDouglas Gregor2010-02-113-23/+40
| | | | | | | | variable type, we can (and should) still check for completeness of the variable's type. Do so, to work around an assertion that shows up in Boost's shared_ptr. llvm-svn: 95934
* Fix leak in CXXNewExpr where the SubExprs array would get allocated directly ↵Ted Kremenek2010-02-113-12/+22
| | | | | | using 'new[]' instead of the allocator associated with ASTContext. llvm-svn: 95933
* Make this test not rely on the system <limits.h>. Hopefully fixes theJohn McCall2010-02-112-2/+5
| | | | | | MSVC build. llvm-svn: 95932
* Fix re-allocation in AttrWithString::ReplaceString() to use the allocator ↵Ted Kremenek2010-02-111-1/+1
| | | | | | assosciated with ASTContext. llvm-svn: 95931
* Allocate the SubExprs array in ObjCMessageExpr using the allocator ↵Ted Kremenek2010-02-115-36/+49
| | | | | | associated with ASTContext. This fixes yet another leak (<rdar://problem/7639260>). llvm-svn: 95930
* add a new MCInstPrinter::getOpcodeName interface, when it is Chris Lattner2010-02-114-5/+22
| | | | | | | implemented, llvm-mc --show-inst now uses it to print the instruction opcode as well as the number. llvm-svn: 95929
* Document binutils requirements for coff targets (cygwin / mingw32).Anton Korobeynikov2010-02-111-8/+4
| | | | llvm-svn: 95928
* improve encoding information for branches. We now know they haveChris Lattner2010-02-111-15/+14
| | | | | | | 8 or 32-bit immediates, which allows the new encoder to handle them. llvm-svn: 95927
* MC: Move assembler-backend's fixup list into the fragment.Daniel Dunbar2010-02-112-85/+74
| | | | llvm-svn: 95926
* MC: Move MCSectionData::Fixup out to MCAsmFixup.Daniel Dunbar2010-02-112-40/+42
| | | | llvm-svn: 95925
* make getFixupKindInfo return a const reference, allowingChris Lattner2010-02-114-7/+22
| | | | | | | the tables to be const. Teach MCCodeEmitter to handle the target-indep kinds so that we don't crash on them. llvm-svn: 95924
* Stub out the final overriders class.Anders Carlsson2010-02-111-1/+128
| | | | llvm-svn: 95922
* Revert functional change. This broke a bunch of tests.Jakob Stoklund Olesen2010-02-111-1/+1
| | | | llvm-svn: 95921
* switch to target-indep fixups for 1/2/4/8 byte data.Chris Lattner2010-02-111-14/+9
| | | | llvm-svn: 95920
* revert 95903.Devang Patel2010-02-111-4/+1
| | | | llvm-svn: 95918
* It is always good to do a cross-class join when the large register has a ↵Jakob Stoklund Olesen2010-02-111-6/+11
| | | | | | | | tiny interval. Also avoid division by zero. llvm-svn: 95917
* Added LDRT/LDRBT/STRT/STRBT for disassembly only.Johnny Chen2010-02-111-0/+32
| | | | llvm-svn: 95916
* unbreak the build.Chris Lattner2010-02-111-1/+1
| | | | llvm-svn: 95915
* Use getAs instead of cast/dyn_cast on types. (I'm sure Doug will appreciate ↵Anders Carlsson2010-02-111-6/+6
| | | | | | this). llvm-svn: 95911
* Move two functions to the top. No functionality change.Anders Carlsson2010-02-111-77/+77
| | | | llvm-svn: 95908
* Uncomment lines I never meant to have left commented in a commit.Ted Kremenek2010-02-111-3/+3
| | | | llvm-svn: 95906
* llvm-db was removed.Dan Gohman2010-02-111-16/+0
| | | | llvm-svn: 95904
* Destroy MDNodes while destructing llvm context.Devang Patel2010-02-111-1/+4
| | | | llvm-svn: 95903
* refactor x86 conditional branches to use a multipatternChris Lattner2010-02-111-1/+1
| | | | | | | that generates the 1-byte and 4-byte immediate versions from one definition. llvm-svn: 95902
* refactor the conditional jump instructions in the .td file toChris Lattner2010-02-116-133/+111
| | | | | | | use a multipattern that generates both the 1-byte and 4-byte versions from the same defm llvm-svn: 95901
* When AST merging for record declarations fails, warn about theDouglas Gregor2010-02-117-63/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | incompatibility and show where the structural differences are. For example: struct1.c:36:8: warning: type 'struct S7' has incompatible definitions in different translation units struct S7 { int i : 8; unsigned j : 8; } x7; ^ struct1.c:36:33: note: bit-field 'j' with type 'unsigned int' and length 8 here struct S7 { int i : 8; unsigned j : 8; } x7; ^ struct2.c:33:33: note: bit-field 'j' with type 'unsigned int' and length 16 here struct S7 { int i : 8; unsigned j : 16; } x7; ^ There are a few changes to make this work: - ASTImporter now has only a single Diagnostic object, not multiple diagnostic objects. Otherwise, having a warning/error printed via one Diagnostic and its note printed on the other Diagnostic could cause the note to be suppressed. - Implemented import functionality for IntegerLiteral (along with general support for statements and expressions) llvm-svn: 95900
* Make Kaleidoscope not link against the interpreter, since that didn'tJeffrey Yasskin2010-02-1112-21/+53
| | | | | | | | work anyway (Interpreter::getPointerToFunction doesn't return a callable pointer), and improve the error message when an ExecutionEngine can't be created. llvm-svn: 95896
* Add an svn:ignore.Dan Gohman2010-02-110-0/+0
| | | | llvm-svn: 95895
* Add builtins from PR5255. Implementations coming soon.Eli Friedman2010-02-111-0/+8
| | | | llvm-svn: 95894
* Test case for warnings with carets inside macro instantiations.John McCall2010-02-111-0/+8
| | | | llvm-svn: 95893
* Forgot to also check in this file for vcvt (floating-point <-> fixed-point, ↵Johnny Chen2010-02-111-0/+9
| | | | | | | | VFP). Sorry! llvm-svn: 95892
* Allow for more than one DBG_VALUE targeting theDale Johannesen2010-02-111-4/+4
| | | | | | same dead instruction. llvm-svn: 95890
* Don't allow DBG_VALUE to affect codegen.Dale Johannesen2010-02-111-0/+3
| | | | llvm-svn: 95889
* Add virtual operator= example.Anders Carlsson2010-02-111-1/+3
| | | | llvm-svn: 95888
* More vtable layout dumper improvements. Handle destructors, dump the ↵Anders Carlsson2010-02-117-27/+100
| | | | | | complete function type of the member functions (using PredefinedExpr::ComputeName. llvm-svn: 95887
* Add missing test cases for AST merging of structures.Douglas Gregor2010-02-113-0/+36
| | | | llvm-svn: 95886
* Added VCVT (between floating-point and fixed-point, VFP) for disassembly.Johnny Chen2010-02-111-0/+95
| | | | | | A8.6.297 llvm-svn: 95885
* Added BKPT/tBKPT (breakpoint) to the instruction table for disassembly purpose.Johnny Chen2010-02-112-0/+17
| | | | llvm-svn: 95884
* Use array_pod_sort instead of std::sort for improved code size.Jakob Stoklund Olesen2010-02-111-2/+2
| | | | | | | Use SmallVector instead of std::vector for better speed when indirectbr has few successors. llvm-svn: 95879
* Make sure that ConstantExpr offsets also aren't off of externEric Christopher2010-02-112-2/+23
| | | | | | | | symbols. Thanks to Duncan Sands for the testcase! llvm-svn: 95877
* Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.Daniel Dunbar2010-02-111-1/+2
| | | | llvm-svn: 95876
* Keep track of, and dump, vtable address points.Anders Carlsson2010-02-112-2/+34
| | | | llvm-svn: 95874
* Add pseudo instruction TRAP for disassembly, which is encoded according to A5-21Johnny Chen2010-02-111-0/+10
| | | | | | as the "Permanently UNDEFINED" instruction. llvm-svn: 95873
* Remove noisy semicolon.Benjamin Kramer2010-02-111-1/+1
| | | | llvm-svn: 95872
* Use .empty() instead of .size().Bill Wendling2010-02-111-2/+2
| | | | llvm-svn: 95871
* Suppress warnings if their instantiation location is in a system header, notJohn McCall2010-02-111-1/+1
| | | | | | | | | | | | | their spelling location. This prevents warnings from being swallowed just because the caret is on the first parenthesis in, say, NULL. This is an experiment; the risk is that there might be a substantial number of system headers which #define symbols to expressions which inherently cause warnings. My theory is that that's rare enough that it can be worked around case-by-case, and that producing useful warnings around NULL is worth it. But I'm willing to accept that I might be empirically wrong. llvm-svn: 95870
* Patch by Cristian Draghici:Ted Kremenek2010-02-114-3/+58
| | | | | | | | | | | | Enhance the printf format string checking when using the format specifier flags ' ', '0', '+' with the 'p' or 's' conversions (since they are nonsensical and undefined). This is similar to GCC's checking. Also warning when a precision is used with the 'p' conversin specifier, since it has no meaning. llvm-svn: 95869
* dont' call getX86RegNum on X86::RIP, it doesn't like that. ThisChris Lattner2010-02-112-3/+7
| | | | | | fixes the remaining x86-64 jit failures afaik. llvm-svn: 95867
OpenPOWER on IntegriCloud