summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove a pair of unused diagnostic messages.Eric Christopher2011-04-091-5/+0
| | | | llvm-svn: 129178
* Redirected errors from the AsmParser to the properSean Callanan2011-04-091-0/+10
| | | | | | | | | error stream, in cases where the AsmParser is being invoked by EDDisassembler. Before, they were being sent to errs() because no error handler was installed in the SourceMgr. llvm-svn: 129177
* Apply explicit braces to avoid ambiguous 'else' [-Wparentheses]Nick Lewycky2011-04-091-2/+2
| | | | llvm-svn: 129176
* Moved an access to an object past a NULL check,Sean Callanan2011-04-091-2/+2
| | | | | | making the MC disassembler tester more robust. llvm-svn: 129175
* Eat the UTF-8 BOM at the beginning of a file since it's ignored anyhow.Eric Christopher2011-04-092-7/+19
| | | | | | | | Nom Nom Nom. Patch by Anton Korobeynikov! llvm-svn: 129174
* complete documentation of flags, patch by nobledChris Lattner2011-04-081-0/+1
| | | | llvm-svn: 129173
* Add radar number for future reference.Devang Patel2011-04-081-1/+1
| | | | llvm-svn: 129172
* Fixes a rewrting bug of a property-dot syntax expression insideFariborz Jahanian2011-04-082-0/+28
| | | | | | a block. First part of // rdar://9254348 llvm-svn: 129171
* Simplify array bound checks and clarify comments. One element array can ↵Devang Patel2011-04-082-11/+9
| | | | | | have same non-zero number as lower bound as well as upper bound. llvm-svn: 129170
* Properly traverse a ObjCMethodDecl in RecursiveASTVisitor.Argyrios Kyrtzidis2011-04-081-3/+11
| | | | llvm-svn: 129169
* Fix various things in the instruction emulation code:Caroline Tice2011-04-087-17/+69
| | | | | | | | | | | | - Add ability to control whether or not the emulator advances the PC register (in the emulation state), if the instruction itself does not change the pc value.. - Fix a few typos in asm description strings. - Fix bug in the carry flag calculation. llvm-svn: 129168
* typo fix + expandChris Lattner2011-04-081-2/+2
| | | | llvm-svn: 129167
* Start overhauling static analyzer support for C++ constructors. The ↵Ted Kremenek2011-04-083-36/+135
| | | | | | | | | inlining support isn't complete, and needs to be reworked to model CallEnter/CallExit (just like all other calls). For now, treat constructors mostly like other function calls, making the analysis of C++ code just a little more useful. llvm-svn: 129166
* Really fix the test suite crasher this time.Johnny Chen2011-04-084-7/+7
| | | | llvm-svn: 129165
* Minor format fix.Evan Cheng2011-04-081-2/+2
| | | | llvm-svn: 129164
* Add a function for profiling to run at shutdown. Unlike the existing API, thisNick Lewycky2011-04-082-3/+40
| | | | | | | can be used even when main() isn't present in the Module, but it means that you don't get to read argv[]. llvm-svn: 129163
* Document -ftrap-function= optionEvan Cheng2011-04-081-0/+12
| | | | llvm-svn: 129162
* Fix a test suite crasher.Johnny Chen2011-04-081-1/+1
| | | | llvm-svn: 129161
* Fix an apparent typo that made GCC complainMatt Beaumont-Gay2011-04-081-1/+1
| | | | llvm-svn: 129160
* Do not use zero as an upper bound for unbounded array because upper bound ↵Devang Patel2011-04-081-6/+17
| | | | | | zero also indicates one element array. llvm-svn: 129157
* Do not emit DW_AT_upper_bound and DW_AT_lower_bound for unbouded array.Devang Patel2011-04-083-4/+50
| | | | | | | | If lower bound is more then upper bound then consider it is an unbounded array. An array is unbounded if non-zero lower bound is same as upper bound. If lower bound and upper bound are zero than array has one element. llvm-svn: 129156
* Missing closed tag.Bill Wendling2011-04-081-1/+1
| | | | llvm-svn: 129155
* Rename -mtrap_function= to -ftrap_function= since it's now a target neutral ↵Evan Cheng2011-04-082-13/+9
| | | | | | options. llvm-svn: 129153
* Change -arm-trap-func= into a non-arm specific option. Now Intrinsic::trap ↵Evan Cheng2011-04-085-26/+33
| | | | | | is lowered into a call to the specified trap function at sdisel time. llvm-svn: 129152
* Workaround g++ 4.2.1 warning diagnostic false positive.Jim Grosbach2011-04-081-2/+2
| | | | llvm-svn: 129149
* Check opcoe (dmb, dsb) instead of bitfields matching.Johnny Chen2011-04-081-12/+1
| | | | llvm-svn: 129148
* Hanlde the checking of bad regs for SMMLAR properly, instead of asserting.Johnny Chen2011-04-082-9/+13
| | | | | | | PR9650 rdar://problem/9257565 llvm-svn: 129147
* Sanity check the option operand for DMB/DSB.Johnny Chen2011-04-085-8/+67
| | | | | | | PR9648 rdar://problem/9257634 llvm-svn: 129146
* Add -mtrap_function=<> option. rdar://9257465Evan Cheng2011-04-082-0/+13
| | | | llvm-svn: 129145
* Mark hasExtraDefRegAllocReq=1 on LDRD.Jim Grosbach2011-04-081-1/+5
| | | | | | | | | The previous cleanup of LDRD got overzealous and removed it, causing post-RA scheduling to get overzealous in breaking antidependencies and invalidate these instructions. Hilarity and invalid assembly ensued. rdar://9244161 llvm-svn: 129144
* Use ExprResult& instead of Expr *& in SemaJohn Wiegley2011-04-0817-1406/+1856
| | | | | | | | | | | | | | | | | | | | | | | | | This patch authored by Eric Niebler. Many methods on the Sema class (e.g. ConvertPropertyForRValue) take Expr pointers as in/out parameters (Expr *&). This is especially true for the routines that apply implicit conversions to nodes in-place. This design is workable only as long as those conversions cannot fail. If they are allowed to fail, they need a way to report their failures. The typical way of doing this in clang is to use an ExprResult, which has an extra bit to signal a valid/invalid state. Returning ExprResult is de riguour elsewhere in the Sema interface. We suggest changing the Expr *& parameters in the Sema interface to ExprResult &. This increases interface consistency and maintainability. This interface change is important for work supporting MS-style C++ properties. For reasons explained here <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013180.html>, seemingly trivial operations like rvalue/lvalue conversions that formerly could not fail now can. (The reason is that given the semantics of the feature, getter/setter method lookup cannot happen until the point of use, at which point it may be found that the method does not exist, or it may have the wrong type, or overload resolution may fail, or it may be inaccessible.) llvm-svn: 129143
* Warn for any kind of initialization if initializer does notFariborz Jahanian2011-04-086-7/+96
| | | | | | | implement lhs's protocols. // rdar://9091389. llvm-svn: 129142
* fix a typo, patch by PaX team.Chris Lattner2011-04-081-1/+1
| | | | llvm-svn: 129141
* reindent this whole file and do a variety of stylistic cleanups.Chris Lattner2011-04-081-1422/+1400
| | | | | | This code is still a long way from following best practices. llvm-svn: 129140
* fix this to build with the recent StructType changes.Chris Lattner2011-04-081-6/+6
| | | | llvm-svn: 129139
* Refactor MCJIT 32-bit section loading.Jim Grosbach2011-04-084-84/+72
| | | | | | | Teach 32-bit section loading to use the Memory Manager interface, just like the 64-bit loading does. Tidy up a few other things here and there. llvm-svn: 129138
* MOVi16 and MOVTi16 does not allow pc as the dest register, while MOVi allows it.Johnny Chen2011-04-082-0/+16
| | | | | | Add tests for that. llvm-svn: 129137
* Add missing headers.Stephen Wilson2011-04-089-0/+13
| | | | | | | | Something changed in commit r129112 where a few standard headers vanished from the include chain when building on Linux. Fix up by including limits.h for INT_MAX and PATH_MAX where needed, and stdio.h for printf(). llvm-svn: 129130
* llvm.global_[cd]tor is defined to be either external, or appending with an arrayNick Lewycky2011-04-084-37/+33
| | | | | | | of { i32, void ()* }. Teach the verifier to verify that, deleting copies of checks strewn about. llvm-svn: 129128
* Switch 'is possibly uninitialized' to 'may be uninitialized' based onChandler Carruth2011-04-083-15/+15
| | | | | | Chris's feedback. llvm-svn: 129127
* Now that the analyzer is distinguishing between uninitialized uses thatChandler Carruth2011-04-085-23/+24
| | | | | | | definitely have a path leading to them, and possibly have a path leading to them; reflect that distinction in the warning text emitted. llvm-svn: 129126
* Only emit the AvailableFeatures variable if it's used.Bill Wendling2011-04-081-4/+7
| | | | llvm-svn: 129124
* Also add the late notes for Mips in the current release noteBruno Cardoso Lopes2011-04-081-1/+5
| | | | llvm-svn: 129122
* Add the ARM instruction emulation makefile.Stephen Wilson2011-04-081-0/+14
| | | | | | I forgot to 'svn add' this file in r129119. llvm-svn: 129120
* Add makefile support for the ARM instruction emulation plugin.Stephen Wilson2011-04-082-2/+3
| | | | llvm-svn: 129119
* linux: add missing arguments to FindFirstModuleForFileSpecStephen Wilson2011-04-081-2/+3
| | | | | | | Specifying the new arguments as NULL is appropriate for now as this is backwards-compatible with the old invocation. llvm-svn: 129118
* Add sanity checking for bad register specifier(s) for the DPFrm instructions.Johnny Chen2011-04-085-0/+80
| | | | | | Add more test cases to exercise the logical branches related to the above change. llvm-svn: 129117
* Update testsRafael Espindola2011-04-0730-71/+71
| | | | llvm-svn: 129116
* Micro optimization and improved similarity with gas' output:Rafael Espindola2011-04-071-10/+38
| | | | | | When two section names share a suffix, reuse the entry in shstrtab. llvm-svn: 129115
* Do not let debug info interfer with branch folding.Devang Patel2011-04-072-0/+64
| | | | llvm-svn: 129114
OpenPOWER on IntegriCloud