summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Keep track of the file ID corresponding to the original file used toDouglas Gregor2011-05-065-7/+28
| | | | | | | | | | | build a precompiled header. Use this information to eliminate the call to SourceManager::getLocation() while loading a precompiled preamble, since SourceManager::getLocation() itself causes unwanted deserialization. Fixed <rdar://problem/9399352>. llvm-svn: 131021
* Replace calls to HandleCommand in lldb core with more appropriateCaroline Tice2011-05-063-84/+183
| | | | | | | direct function calls. As part of this, collect code that processes arguments & options for aliases into a single function. llvm-svn: 131020
* Fix false positive warning about uninitialized variable.Cameron Esfahani2011-05-061-1/+1
| | | | llvm-svn: 131019
* Per Richard's suggestion, rename DefLoc to DefaultLoc where it appears.Alexis Hunt2011-05-065-32/+31
| | | | llvm-svn: 131018
* Fix diagnostics to start with a lower case letterAlexis Hunt2011-05-062-3/+3
| | | | llvm-svn: 131017
* It's valid to take the blockaddress of a different function, so remove thisNick Lewycky2011-05-062-2/+30
| | | | | | | assert in the bitcode writer. No change needed because the ValueEnumerator holds a whole-module numbering anyhow. Fixes PR9857! llvm-svn: 131016
* 80 col violations.Evan Cheng2011-05-061-3/+7
| | | | llvm-svn: 131015
* Add support for Microsoft __if_exists and __if_not_exists construct inside ↵Francois Pichet2011-05-066-1/+124
| | | | | | | | | | | | function definition. Allow to include or exclude code depending on if a symbol exists or not. Just like a #ifdef but for C/C++ symbols. More doc: http://msdn.microsoft.com/en-us/library/x7wy9xh3(v=VS.100).aspx Support at class and namespace scopes will be added later. llvm-svn: 131014
* Modify some deleted function methods to better reflect reality:Alexis Hunt2011-05-0621-48/+72
| | | | | | | | | | | | | | | | | | | | - New isDefined() function checks for deletedness - isThisDeclarationADefinition checks for deletedness - New doesThisDeclarationHaveABody() does what isThisDeclarationADefinition() used to do - The IsDeleted bit is not propagated across redeclarations - isDeleted() now checks the canoncial declaration - New isDeletedAsWritten() does what it says on the tin. - isUserProvided() now correct (thanks Richard!) This fixes the bug that we weren't catching void foo() = delete; void foo() {} as being a redefinition. llvm-svn: 131013
* Make the logic for determining function alignment more explicit. No ↵Eli Friedman2011-05-0629-101/+72
| | | | | | functionality change. llvm-svn: 131012
* For a test with unexpected success status, we also dump its session info ↵Johnny Chen2011-05-062-8/+32
| | | | | | into a unique file. llvm-svn: 131011
* ScopInfo: Do not return reference to member variable 'domain'.Tobias Grosser2011-05-066-6/+17
| | | | | | | | Instead of returning a pointer to the domain, we return a new copy of it. This is safer, as we do not give access to internal objects. It is also not expensive, as isl will just increment a reference counter. llvm-svn: 131010
* Dependences: Add interface to retrieve dependences.Tobias Grosser2011-05-062-0/+40
| | | | llvm-svn: 131009
* Use array_lengthof. No functional change.Eli Friedman2011-05-061-3/+1
| | | | llvm-svn: 131008
* Iterate backwards over debug locations when splitting them so they can be ↵Jakob Stoklund Olesen2011-05-061-1/+4
| | | | | | | | safely erased. This should unbreak dragonegg-i386-linux and build-self-4-mingw32. llvm-svn: 131007
* Improve diagnostics for some parse errors. Not asserting when a user inputJim Grosbach2011-05-061-7/+3
| | | | | | error is detected is a good thing. llvm-svn: 131005
* ParseFile() may throw, so extend the try/catch to handle that.Jim Grosbach2011-05-061-11/+11
| | | | llvm-svn: 131004
* Make the log message & setter match for "dyld/shlib". The ↵Jim Ingham2011-05-061-1/+1
| | | | | | "ListLogCategories" output should really be auto-generated from the settings so you can't make this sort of mistake... llvm-svn: 131003
* Move few target-dependant tests to appropriate directories.Galina Kistanova2011-05-066-0/+15
| | | | llvm-svn: 131002
* Typo: Reviewed by Alistair.Andrew Trick2011-05-061-1/+1
| | | | llvm-svn: 131001
* Don't emit nsw flags for vector operations; there's basically no benefit, ↵Eli Friedman2011-05-064-64/+61
| | | | | | and a lot of downside (like PR9850, which is about clang's xmmintrin.h making an unexpected transformation on an expression involving _mm_add_epi32). llvm-svn: 131000
* Pass -disable-cfi to llc.Rafael Espindola2011-05-065-5/+5
| | | | llvm-svn: 130999
* Update LiveDebugVariables after live range splitting.Jakob Stoklund Olesen2011-05-064-3/+165
| | | | | | | | | | | | After a virtual register is split, update any debug user variables that resided in the old register. This ensures that the LiveDebugVariables are still correct after register allocation. This may create DBG_VALUE instructions that place a user variable in a register in parts of the function and in a stack slot in other parts. DwarfDebug currently doesn't support that. llvm-svn: 130998
* Use TargetMachine hooks to properly print debug variable locations.Jakob Stoklund Olesen2011-05-061-6/+7
| | | | llvm-svn: 130997
* Also count identity copies.Jakob Stoklund Olesen2011-05-061-0/+2
| | | | llvm-svn: 130996
* Pass -disable-cfi.Rafael Espindola2011-05-061-1/+1
| | | | llvm-svn: 130995
* Fix a couple of comments.Eli Friedman2011-05-061-5/+3
| | | | llvm-svn: 130994
* Add an implementation of thunks for varargs methods. The implementation is ↵Eli Friedman2011-05-064-49/+180
| | | | | | a bit messy, but it is correct as long as the method in question doesn't use indirect gotos. A couple of possible alternative implementations are outlined in FIXME's in this patch. rdar://problem/8077308 . llvm-svn: 130993
* Post-RA scheduler compile time fix. Quadratic computation of DAG node depth.Andrew Trick2011-05-061-4/+10
| | | | | | | | | | | The post-ra scheduler was explicitly updating the depth of a node's successors after scheduling it, regardless of whether the successor was ready. This is quadratic for DAGs with transitively redundant edges. I simply removed the useless update of depth, which is lazilly computed later. Fixes <rdar://problem/9044332> compiler takes way too long to build TextInput. llvm-svn: 130992
* Move CompileUnit::getOrCreateNameSpace() and CompileUnit::addPubType() from ↵Devang Patel2011-05-062-34/+35
| | | | | | DwarfDebug.cpp to DwarfCompileUnit.cpp llvm-svn: 130991
* Introduce a new libclang parsing flag,Douglas Gregor2011-05-0613-26/+98
| | | | | | | | | | | | | CXTranslationUnit_NestedMacroInstantiations, which indicates whether we want to see "nested" macro instantiations (e.g., those that occur inside other macro instantiations) within the detailed preprocessing record. Many clients (e.g., those that only care about visible tokens) don't care about this information, and in code that uses preprocessor metaprogramming, this information can have a very high cost. Addresses <rdar://problem/9389320>. llvm-svn: 130990
* Nothing else uses this label.Rafael Espindola2011-05-061-3/+0
| | | | llvm-svn: 130989
* Yet more dead code.Rafael Espindola2011-05-062-17/+0
| | | | llvm-svn: 130988
* Update comments.Rafael Espindola2011-05-062-3/+6
| | | | llvm-svn: 130987
* Reset the emitted initializers.Axel Naumann2011-05-061-0/+2
| | | | | | This enables incremental codegen, where the initializer array can be removed from the module, such that only new initializers will be emitted and run. llvm-svn: 130986
* More dead code elimination.Rafael Espindola2011-05-062-73/+0
| | | | llvm-svn: 130985
* Dead code elimination.Rafael Espindola2011-05-067-123/+4
| | | | llvm-svn: 130984
* Move logic for passing down -mrelax-all / -relax-all into a commonJoerg Sonnenberger2011-05-061-14/+37
| | | | | | | | function. Extend the logic to check if the input was compiled. Use -relax-all as default only if -O0 is used for compilation. Fixes bug 9290. llvm-svn: 130983
* Warn when trying to call a pure virtual member function in a class from the ↵Anders Carlsson2011-05-063-0/+24
| | | | | | class constructor/destructor. Fixes PR7966. llvm-svn: 130982
* Rename ContainsCompileAction to ContainsCompileOrAssembleAction toJoerg Sonnenberger2011-05-061-5/+5
| | | | | | properly reflect its behavior. llvm-svn: 130981
* PTX: add PTX 2.3 language targetJustin Holewinski2011-05-064-1/+8
| | | | | | Patch by Wei-Ren Chen llvm-svn: 130980
* Fix PR9820: a read-only call differs from a load in that a load doesn'tDuncan Sands2011-05-062-6/+35
| | | | | | | return the pointer being dereferenced, it returns the pointee, but a call might return the pointer itself. llvm-svn: 130979
* Re-revert r130877; it's apparently causing a regression on 197.parser,Eli Friedman2011-05-063-95/+29
| | | | | | possibly related to cbnz formation. llvm-svn: 130977
* ScopDetection: Remember the functions generated by backend in a pointer set, ↵Hongbin Zheng2011-05-064-12/+24
| | | | | | | | so we do not re-generate code for these functions. llvm-svn: 130975
* Do defaulted constructors properly.Alexis Hunt2011-05-069-16/+103
| | | | | | | | Explictly defaultedness is correctly reflected on the AST, but there are no changes to how that affects the definition of functions or much else really. llvm-svn: 130974
* change RC_BUILDIT to RC_XBS for detecting Apple build environmentNick Kledzik2011-05-061-3/+3
| | | | llvm-svn: 130970
* Revert r130912 in order to approach defaulted functions from the otherAlexis Hunt2011-05-0611-78/+15
| | | | | | | direction and not introduce things in the wrong place three different times. llvm-svn: 130968
* The computation of string length is not that complicated. Fix it, again. :)Nick Lewycky2011-05-052-2/+2
| | | | llvm-svn: 130967
* Added the ability to cast pointer types to another type, no matter what theGreg Clayton2011-05-052-0/+51
| | | | | | | ValueObject is, as long as the ValueObject that is being asked to be casted is a pointer itself. llvm-svn: 130966
* Comment.Johnny Chen2011-05-051-2/+3
| | | | llvm-svn: 130965
OpenPOWER on IntegriCloud