summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests to account for new warning "expected ';' at end of declaration ↵Carl Norum2011-03-078-9/+9
| | | | | | list". Sorry, folks! llvm-svn: 127188
* Typos.Eric Christopher2011-03-071-2/+2
| | | | llvm-svn: 127186
* When we adjust the inline ASM type, we need to take into account an earlyBill Wendling2011-03-072-1/+23
| | | | | | | | clobber with the 'y' constraint. Otherwise, we get the wrong return type and an assert, because it created a '<1 x i64>' vector type instead of the x86_mmx type. llvm-svn: 127185
* Add an extra twist of stopping the inferior in a breakpoint, and then ↵Johnny Chen2011-03-071-2/+16
| | | | | | | | continue till it's done. We should still see the entire stdout redirected once the process is finished. llvm-svn: 127184
* Allow passing '-###' to ASTUnit::LoadFromCommandLine to print out the cc1 ↵Argyrios Kyrtzidis2011-03-071-0/+8
| | | | | | options. llvm-svn: 127183
* Preserve line no. info.Devang Patel2011-03-072-2/+51
| | | | | | Radar 9097659 llvm-svn: 127182
* Make the UselessRegs argument optional in the LiveRangeEdit constructor.Jakob Stoklund Olesen2011-03-074-13/+11
| | | | llvm-svn: 127181
* Add test cases for SBTarget.Launch() API with the stdout of the inferior ↵Johnny Chen2011-03-071-0/+39
| | | | | | redirected to a file. llvm-svn: 127179
* Change diagnostic message from "Extension" to "ExtWarn" to find more ↵Carl Norum2011-03-071-1/+1
| | | | | | problems with missing semicolons. llvm-svn: 127177
* Fix null dereference in CFGBlock::FilterEdge that was reported in PR 9412.Ted Kremenek2011-03-072-5/+20
| | | | llvm-svn: 127176
* Move getRegPressureLimit() from TargetLoweringInfo to TargetRegisterInfo.Cameron Zwarich2011-03-0714-66/+64
| | | | llvm-svn: 127175
* CodeGenFunction::GenerateBlockFunction() should initialize DebugInfo just ↵Devang Patel2011-03-071-1/+4
| | | | | | like CodeGenFunction::GenerateCode() llvm-svn: 127174
* Add TestThreadAPI.py file to house the Python SBThread API test cases.Johnny Chen2011-03-074-0/+124
| | | | | | | | | | | | | | | Currently it has only test cases for SBThread.GetStopDescription() API. Also modified lldb.swig to add typemap for (char *dst, size_t dst_len) which occurs for SBThread::GetStopDescription() C++ API. For Python scripting: # Due to the typemap magic (see lldb.swig), we pass in an (int)length to GetStopDescription # and expect to get a Python string as the result object! # The 100 is just an arbitrary number specifying the buffer size. stop_description = thread.GetStopDescription(100) llvm-svn: 127173
* Add test for r127138.Rafael Espindola2011-03-071-0/+16
| | | | llvm-svn: 127172
* g++ is more permissive regarding flexible arrays.Argyrios Kyrtzidis2011-03-073-8/+34
| | | | | | | | It will accept flexible array in union and also as the sole element of a struct/class. Fixes rdar://9065507. llvm-svn: 127171
* Often GCC can see that NumBuckets is zero here, resulting in a warningDuncan Sands2011-03-071-1/+2
| | | | | | about possibly swapped memset parameters. Avoid the warning. llvm-svn: 127170
* Tidy up.Jim Grosbach2011-03-071-1/+0
| | | | llvm-svn: 127169
* Handle the special case of registers begin redefined by early-clobber defs.Jakob Stoklund Olesen2011-03-071-0/+7
| | | | | | | In this case, the value need to be available at the load index instead of the normal use index. llvm-svn: 127167
* Don't cache .o files in the debug map + DWARF in .o files. If we cache themGreg Clayton2011-03-071-2/+15
| | | | | | | then we end up using older .o files with out of date section remappings if we debug, compile + fix, and debug again. llvm-svn: 127166
* DebugInfo can be enabled or disabled at function level (e.g. using an ↵Devang Patel2011-03-078-20/+21
| | | | | | attribute). However, at module level it is determined by command line option and the state of command line option does not change during compilation. Make this layering explicit and fix accidental cases where the code generator was checking whether module has debug info enabled instead of checking whether debug info is enabled for this function or not. llvm-svn: 127165
* Do not emit stop point for CXXDefaultArgExpr. It results in suboptimial user ↵Devang Patel2011-03-074-4/+17
| | | | | | | | | | | | | experience. 21 int main() { 22 A a; For example, here user would expect to stop at line 22, even if A's constructor leads to a call through CXXDefaultArgExpr. This fixes ostream-defined.exp regression from gdb testsuite. llvm-svn: 127164
* Use the correct LHS type when determining the legalization of a shift's RHS ↵Owen Anderson2011-03-073-18/+21
| | | | | | type. llvm-svn: 127163
* Support explicit template specialization and instantiation for membersDouglas Gregor2011-03-077-14/+186
| | | | | | | | | | | of a C++0x inline namespace within enclosing namespaces, as noted in C++0x [namespace.def]p8. Fixes <rdar://problem/9006349>, a libc++ failure where Clang was rejected an explicit specialization of std::swap (since libc++ puts it into an inline, versioned namespace std::__1). llvm-svn: 127162
* When rebuilding a dependent template specialization type to anotherDouglas Gregor2011-03-071-3/+4
| | | | | | | dependent template specialization type, make sure to set the keyword location. Fixes some valgrind issues introduced in r127150. llvm-svn: 127159
* ptx: Fix calling convention printing in AsmWriter.cppJustin Holewinski2011-03-071-2/+2
| | | | | | | This allows LLVM IR using ptx_kernel or ptx_device calling conventions to be properly printed when emitted in text form. llvm-svn: 127157
* Clarify that the result of an srem is only guaranteed to have the same sign ↵Duncan Sands2011-03-071-3/+4
| | | | | | | | as the left-hand-side if the result is non-zero. llvm-svn: 127156
* Don't keep the log files around. Just pipe to a log file instead.Bill Wendling2011-03-071-31/+15
| | | | llvm-svn: 127155
* Fix tagging name.Bill Wendling2011-03-071-8/+8
| | | | llvm-svn: 127154
* Try fixing mingw build.Argyrios Kyrtzidis2011-03-071-27/+15
| | | | llvm-svn: 127153
* Prepend LD.Flags before LDFLAGS to avoid overriding necessary paths.Eric Christopher2011-03-071-4/+4
| | | | | | Patch by Jack Howarth. llvm-svn: 127152
* The conditional needs to be pushed before the branch. Make the test lessJohn McCall2011-03-075-79/+171
| | | | | | trivial to check this. Adjust for style. llvm-svn: 127151
* When transforming a dependent template specialization type, make sureDouglas Gregor2011-03-072-5/+62
| | | | | | | | | to set the source-location information for the template arguments to the *transformed* source-location information, not the original source-location information. Fixes <rdar://problem/8986308> (a libc++ SFINAE issue) and the Boost.Polygon failure. llvm-svn: 127150
* Tweak this test. We can analyze what happens and show that we still do theNick Lewycky2011-03-071-2/+2
| | | | | | | right thing, instead of merely being unable to analyze and the transform doesn't occur. llvm-svn: 127149
* Produce a diagnostic for unused overloaded expressions, from Faisal Vali!Douglas Gregor2011-03-072-0/+54
| | | | llvm-svn: 127148
* An operator new with an empty exception specifier returns null on a badJohn McCall2011-03-072-0/+26
| | | | | | | | allocation and therefore requires a null-check. We were doing that, but we weren't treating the new-initializer as being conditionally executed, which means it was possible to get ill-formed IR as in PR9298. llvm-svn: 127147
* Add more analysis of the sign bit of an srem instruction. If the LHS is negativeNick Lewycky2011-03-073-0/+44
| | | | | | | then the result could go either way. If it's provably positive then so is the srem. Fixes PR9343 #7! llvm-svn: 127146
* Do a compiler check that we use one of the types from PointerUnion[N], ↵Argyrios Kyrtzidis2011-03-071-32/+106
| | | | | | instead of a runtime check. llvm-svn: 127145
* Check in the implementation as well...Anders Carlsson2011-03-071-3/+7
| | | | llvm-svn: 127144
* Add a non-static FixupRelativePath to FileManager.Anders Carlsson2011-03-071-0/+2
| | | | llvm-svn: 127143
* Redo part of r127137:Joerg Sonnenberger2011-03-072-7/+7
| | | | | | | | Pass down the correct C->getArgs, but keep it with the original DerivedArgList type. Slightly adjust the MakeIndex call for the different base type. This unbreaks the handling of --no-mangle on Darwin. llvm-svn: 127142
* Remove the AST printer (-ast-print-xml), which is too incomplete andDouglas Gregor2011-03-0721-2441/+0
| | | | | | | | | | | | | | | too low-level to actually be useful but is just interesting enough for people to try to use it (which won't actually work beyond toy examples). To bring back the AST printer, it needs to be: - Complete, covering all of C/C++/Objective-C - Documented, with appropriate Schema against which we can validate the output - Designed for C/C++/Objective-C, not Clang's specific ASTs - Stable across Clang versions - Well-tested llvm-svn: 127141
* Windows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned.NAKAMURA Takumi2011-03-071-1/+1
| | | | llvm-svn: 127140
* Explicitly initialize CCCIsCPPJoerg Sonnenberger2011-03-071-2/+2
| | | | llvm-svn: 127139
* Don't internalize available_externally functions. We already did the rightRafael Espindola2011-03-061-0/+2
| | | | | | thing for variables. llvm-svn: 127138
* If called as *cpp or *cpp-[^-]*, run only the preprocessor. If noJoerg Sonnenberger2011-03-064-10/+28
| | | | | | | input is specified, use stdin implicitly. Based on a patch from Roman Divacky. llvm-svn: 127137
* Revert r126422 "Use private linkage to avoid symbol conflicts inDouglas Gregor2011-03-062-2/+2
| | | | | | corner cases like the one in PR9301." which caused PR9416. llvm-svn: 127136
* remove another jeff linkChris Lattner2011-03-061-1/+0
| | | | llvm-svn: 127135
* Used a nicer cast.Abramo Bagnara2011-03-061-1/+1
| | | | llvm-svn: 127134
* Convert FileManager::FixupRelativePath over to using PathV2.Anders Carlsson2011-03-063-19/+23
| | | | llvm-svn: 127133
* Improved type source location for long long type.Abramo Bagnara2011-03-061-4/+6
| | | | llvm-svn: 127132
OpenPOWER on IntegriCloud