summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
Commit message (Collapse)AuthorAgeFilesLines
...
* Reintroduce r98340 and r98341 now without copy/paste errors.Kovarththanan Rajaratnam2010-03-121-14/+15
| | | | | | Thanks to Ben for pointing this out. llvm-svn: 98345
* Back out r98340 abd r98341Kovarththanan Rajaratnam2010-03-121-15/+14
| | | | llvm-svn: 98344
* fix PR6584: __SSE3__ not defined with -mss3Nuno Lopes2010-03-121-0/+1
| | | | llvm-svn: 98342
* Switch parameter order for consistency (no functionality change)Kovarththanan Rajaratnam2010-03-121-4/+4
| | | | llvm-svn: 98341
* Add keywords using StringRefKovarththanan Rajaratnam2010-03-121-13/+14
| | | | llvm-svn: 98340
* Fix -Wsign-compare warning reported by clang++.Ted Kremenek2010-03-101-1/+2
| | | | llvm-svn: 98170
* add mblaze target support, patch by Wesley Peck!Chris Lattner2010-03-061-0/+131
| | | | llvm-svn: 97890
* Make sure the raw_string_ostream gets flushed so we don't accidentally ↵Benjamin Kramer2010-03-051-3/+3
| | | | | | return an empty string. llvm-svn: 97809
* add TCE target support, patch by Pekka J!Chris Lattner2010-03-041-3/+4
| | | | llvm-svn: 97746
* Add in disabled case as well.Eric Christopher2010-03-041-0/+4
| | | | llvm-svn: 97716
* Add in -msse4.1 and -msse4.2 options and continuing a ratherEric Christopher2010-03-041-3/+8
| | | | | | | hacky solution for translating. Expanded on comment explaining the hack a bit. llvm-svn: 97714
* add framework for ARM builtins, Patch by Edmund Grimley Evans!Chris Lattner2010-03-031-3/+10
| | | | llvm-svn: 97656
* Use SVN_REVISION, not SVN_VERSION.Ted Kremenek2010-03-031-1/+1
| | | | llvm-svn: 97625
* Make getClangRevision() check that SVN_VERSION is an empty string Ted Kremenek2010-03-031-8/+8
| | | | | | | | (even if it is defined). This fixes the issue of this function returning '0' when SVN_VERSION is defined to be "". Fixes: <rdar://problem/7663667> llvm-svn: 97620
* Add in some more MIPS command line options.Eric Christopher2010-03-021-1/+29
| | | | | | Patch by Oleksandr Tymoshenko! llvm-svn: 97544
* Robustify SourceManager::getLocation(), so that it returns anDouglas Gregor2010-02-271-14/+18
| | | | | | | | | end-of-line source location when given a column number beyond the length of the line, or an end-of-file source location when given a line number beyond the length of the file. Previously, we would return an invalid location. llvm-svn: 97299
* Use a little binary header in serialized diagnostics to help the ↵Douglas Gregor2010-02-191-3/+26
| | | | | | deserializer skip over noise in the stream llvm-svn: 96641
* Re-apply my diagnostics-capture patch for CIndex, with some tweaks toDouglas Gregor2010-02-181-1/+1
| | | | | | try to address the msvc failures. llvm-svn: 96624
* Rework how CIndex handles diagnostics. Rather than using a callback,Douglas Gregor2010-02-181-142/+168
| | | | | | | | | | | | | | | | | | we attach diagnostics to translation units and code-completion results, so they can be queried at any time. To facilitate this, the new StoredDiagnostic class stores a diagnostic in a serializable/deserializable form, and ASTUnit knows how to capture diagnostics in this stored form. CIndex's CXDiagnostic is a thin wrapper around StoredDiagnostic, providing a C interface to stored or de-serialized diagnostics. I've XFAIL'd one test case temporarily, because currently we end up storing diagnostics in an ASTUnit that's never returned to the user (because it contains errors). I'll introduce a temporary fix for this soon; the real fix will be to allow us to return and query invalid ASTs. llvm-svn: 96592
* add freebsd/ppc[64] support, patch by Nathan Whitehorn, PR6318Chris Lattner2010-02-161-1/+10
| | | | llvm-svn: 96362
* Re-applying 96173. Looks like finally I got the test case right.Sanjiv Gupta2010-02-161-5/+7
| | | | llvm-svn: 96321
* reverting back 96242 as it still causes a test failure.Sanjiv Gupta2010-02-151-7/+5
| | | | llvm-svn: 96244
* Re-applying 96173 with corresponding changes in test.Sanjiv Gupta2010-02-151-5/+7
| | | | llvm-svn: 96242
* temporarily revert 96173, it is causing test failures.Chris Lattner2010-02-141-7/+5
| | | | llvm-svn: 96176
* renamed pic16 specifiic macros.Sanjiv Gupta2010-02-141-5/+7
| | | | llvm-svn: 96173
* Fix bug I introduced with assinging a temporary to a StringRef.Ted Kremenek2010-02-121-1/+1
| | | | llvm-svn: 96041
* Make the following functions thread-safe but having them return an ↵Ted Kremenek2010-02-121-27/+20
| | | | | | | | | | | | std::string that is reconstructed every time they are called: getClangRevision() getClangFullRepositoryVersion() getClangFullVersion() llvm-svn: 96033
* fix a bug in SourceManager::getInstantiationLocSlowCase, whereChris Lattner2010-02-121-3/+7
| | | | | | | | | | | we'd add an offset from the spelling location space to the instantiation location, which doesn't make sense and would lead up to the text diagnostics crashing when presented with non-sensical locations. This fixes rdar://7597492, a crash on 255.vortex. llvm-svn: 96004
* 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
* Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixesDaniel Dunbar2010-02-101-3/+0
| | | | | | | calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787
* First stage of adding AltiVec supportJohn Thompson2010-02-051-1/+3
| | | | llvm-svn: 95335
* Don't explicitly force utf strings into the __TEXT,__ustringChris Lattner2010-02-011-4/+0
| | | | | | | | | | by setting the section of the generated global. This is an optimization done by the code generator, and the code being removed didn't handle the case when the string contained an embedded nul (which the code generator does correctly handle). This is rdar://7589850 llvm-svn: 95003
* Simplify FreeBSD version parsing.Benjamin Kramer2010-01-301-10/+4
| | | | llvm-svn: 94919
* Yay for more StringRefs.Anders Carlsson2010-01-301-18/+21
| | | | llvm-svn: 94917
* StringRef-ize the TargetInfo::ConstraintInfo constructor.Anders Carlsson2010-01-301-1/+1
| | | | llvm-svn: 94916
* We don't need to place 0 in the URL string now that we return a StringRef.Benjamin Kramer2010-01-301-18/+13
| | | | | | | - URL can go into read only memory now. - Compilers will fold away all the strstr calls. llvm-svn: 94887
* Fix alignment for msp430 integer types.Anton Korobeynikov2010-01-301-7/+4
| | | | llvm-svn: 94879
* Introduce serialization and deserialization of diagnostic informationDouglas Gregor2010-01-281-0/+217
| | | | | | | | | | | | | | | | | 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
* ARM/APCS: Fix alignment of long double.Daniel Dunbar2010-01-271-1/+1
| | | | llvm-svn: 94685
* Add support for 3dnow and 3dnowa, and define the target macros accordingly. ↵Anders Carlsson2010-01-271-1/+23
| | | | | | (This is needed in order to build Qt). llvm-svn: 94658
* Driver/Darwin: Stuff iPhoneOS into environment portion of the (llvm/clang) ↵Daniel Dunbar2010-01-261-46/+39
| | | | | | triple instead of keying off architecture. Also, fix version define to properly include the revision/micro component of the version number. llvm-svn: 94487
* -fno-rtti is now the default.Chris Lattner2010-01-241-1/+0
| | | | llvm-svn: 94379
* Rename getClangFullVendorVersion() to getClangFullVersion().Ted Kremenek2010-01-231-1/+1
| | | | llvm-svn: 94273
* Add 'clang_getClangVersion()' function to CIndex. This exposes the full ↵Ted Kremenek2010-01-221-2/+2
| | | | | | Clang version string through the CIndex API. llvm-svn: 94242
* Move version string generation (e.g., "clang 1.1 ...") to ↵Ted Kremenek2010-01-222-6/+22
| | | | | | libBasic/Version.cpp, getClangFullVendorVersion(). llvm-svn: 94235
* (1) Rename getClangSubversionRevision() to getClangRevision(), andTed Kremenek2010-01-221-3/+21
| | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... llvm-svn: 94231
* Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵Ted Kremenek2010-01-221-1/+4
| | | | | | return a StringRef. llvm-svn: 94213
* Update to use llvm/utils/GetSourceVersion to detect version number, instead ofDaniel Dunbar2010-01-211-1/+1
| | | | | | assuming SVN. This should be fixed to not necessarily be an integer. llvm-svn: 94081
* Move the MacroBuilder utilitiy to its own header. Update references.Chandler Carruth2010-01-201-0/+1
| | | | | | Comments and/or improvements to the documentation are welcome. llvm-svn: 93982
* Actually remove the include that r93974 made unnecessary.Chandler Carruth2010-01-201-1/+0
| | | | llvm-svn: 93975
OpenPOWER on IntegriCloud