Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Headers: Define __INT64_TYPE__ in terms of getInt64Type(), which isn't always | Daniel Dunbar | 2010-06-30 | 1 | -0/+6 |
| | | | | | | | | 'long'. The practical upshot is so that the uint64_t we define in our stdint.h ends up being compatible with that defined by gcc (at least on Darwin), which otherwise could lead to type incompatibilities with other system headers. llvm-svn: 107255 | ||||
* | Remove state assertion. | Ted Kremenek | 2010-06-28 | 1 | -1/+0 |
| | | | | llvm-svn: 107064 | ||||
* | Don't crash in InitializePreprocessor() when there is no valid PTHManager. ↵ | Ted Kremenek | 2010-06-28 | 1 | -1/+2 |
| | | | | | | Fixes <rdar://problem/8098441>. llvm-svn: 107061 | ||||
* | Remove HAS_TLS define. | Eric Christopher | 2010-06-24 | 1 | -4/+0 |
| | | | | llvm-svn: 106786 | ||||
* | More clang support for darwin tls. Add a __has_feature macro and | Eric Christopher | 2010-06-24 | 1 | -0/+4 |
| | | | | | | target specific preprocessor define as well. llvm-svn: 106715 | ||||
* | Add several more predefines from modern versions of GCC. | Dan Gohman | 2010-05-28 | 1 | -0/+27 |
| | | | | llvm-svn: 104906 | ||||
* | Predefine the '__clang_analyzer__' macro when using '-analyze'. | Ted Kremenek | 2010-05-26 | 1 | -0/+5 |
| | | | | llvm-svn: 104742 | ||||
* | Add Clang version inspection macros. Fixes PR6681. | Douglas Gregor | 2010-04-30 | 1 | -1/+15 |
| | | | | llvm-svn: 102686 | ||||
* | fix PR6936: don't generate line marker directives when preprocessing | Chris Lattner | 2010-04-26 | 1 | -3/+9 |
| | | | | | | | | .S files. "# 123" is passed through as-is, not treated as a line marker in this mode. No testcase, because it would be nasty and isn't worth it. llvm-svn: 102391 | ||||
* | Sink the _GNU_SOURCE definition down into the target configuration, | Douglas Gregor | 2010-04-21 | 1 | -24/+0 |
| | | | | | | | and only define it where we know we need it---Linux and Cygwin. Thanks to Chris for the prodding. llvm-svn: 101989 | ||||
* | Only predefine the macro _GNU_SOURCE in C++ mode when we're on a | Douglas Gregor | 2010-04-16 | 1 | -2/+24 |
| | | | | | | | platform that typically uses glibc. Fixes a Boost.Thread compilation failure. llvm-svn: 101450 | ||||
* | When given unsaved files in clang_createTranslationUnitFromSourceFile, | Douglas Gregor | 2010-02-27 | 1 | -1/+2 |
| | | | | | | | | | | copy the source buffers provided rather than referencing them directly, so that the caller can free those buffers immediately after calling clang_createTranslationUnitFromSourceFile(). Otherwise, we risk hitting those buffers later (when building source ranges, forming diagnostics, etc.). llvm-svn: 97296 | ||||
* | Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixes | Daniel Dunbar | 2010-02-10 | 1 | -0/+2 |
| | | | | | | | calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787 | ||||
* | Extend clang_createTranslationUnitFromSourceFile() to support creating | Douglas Gregor | 2010-01-23 | 1 | -10/+31 |
| | | | | | | translation units that include unsaved files. llvm-svn: 94258 | ||||
* | Move the MacroBuilder utilitiy to its own header. Update references. | Chandler Carruth | 2010-01-20 | 1 | -0/+1 |
| | | | | | | Comments and/or improvements to the documentation are welcome. llvm-svn: 93982 | ||||
* | Fix an invalid Twine use spotty by abbeyj, it isn't safe to use Twine | Daniel Dunbar | 2010-01-20 | 1 | -1/+4 |
| | | | | | | | temporaries (this is one reason I'm nervous about propagating their use beyond particularly performance critical places). llvm-svn: 93981 | ||||
* | Predefine __weak attribute when doing objective-c | Fariborz Jahanian | 2010-01-13 | 1 | -2/+7 |
| | | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331 | ||||
* | Fix PR5982, a refacto in checking for '=' in a -D argument. | Daniel Dunbar | 2010-01-10 | 1 | -8/+5 |
| | | | | llvm-svn: 93088 | ||||
* | Use MacroBuilder for TargetDefines instead of std::vector. | Benjamin Kramer | 2010-01-09 | 1 | -3/+1 |
| | | | | llvm-svn: 93058 | ||||
* | Move MacroBuilder into Frontend/Utils.h and clean it up a bit. | Benjamin Kramer | 2010-01-09 | 1 | -127/+89 |
| | | | | llvm-svn: 93057 | ||||
* | Rework InitPreprocessor to use a MacroBuilder class instead of pushing around | Benjamin Kramer | 2010-01-09 | 1 | -248/+208 |
| | | | | | | | | | | | | std::vectors. - MacroBuilder wraps a raw_ostream so it can easily write to any buffer supported by raw_ostream. - MacroBuilder's method take Twines for easy string concatenation (this was done with sprintf and temporary buffers before). - Targets still use std::vector as they don't have access to the builder. llvm-svn: 93051 | ||||
* | Switch UndefineBuiltinMacro() over to using StringRef | Kovarththanan Rajaratnam | 2010-01-09 | 1 | -2/+2 |
| | | | | llvm-svn: 93049 | ||||
* | Switch DefineBuiltinMacro() over to using StringRef | Kovarththanan Rajaratnam | 2010-01-09 | 1 | -8/+12 |
| | | | | llvm-svn: 93048 | ||||
* | Convert from char pointer to char array | Kovarththanan Rajaratnam | 2010-01-07 | 1 | -6/+6 |
| | | | | llvm-svn: 92923 | ||||
* | Tigthen scope of local char array | Kovarththanan Rajaratnam | 2010-01-07 | 1 | -1/+1 |
| | | | | llvm-svn: 92917 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-04 | 1 | -0/+3 |
| | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70926 llvm-svn: 90596 | ||||
* | Fix two more diagnostic-on-stderr instances that thought they could hide ↵ | Daniel Dunbar | 2009-12-03 | 1 | -10/+10 |
| | | | | | | from me -- they thought wrong. llvm-svn: 90442 | ||||
* | Extend -remap-file=from;to to permit mapping from a non-existent | Douglas Gregor | 2009-12-02 | 1 | -4/+5 |
| | | | | | | | | | | | | file. This is accomplished by introducing the notion of a "virtual" file into the file manager, which provides a FileEntry* for a named file whose size and modification time are known but which may not exist on disk. Added a cute little test that remaps both a .c file and a .h file it includes to alternative files. llvm-svn: 90329 | ||||
* | Move file-remapping logic into InitPreprocesor. No functionality change | Douglas Gregor | 2009-12-02 | 1 | -0/+53 |
| | | | | llvm-svn: 90322 | ||||
* | Exit the command line into <built-in> instead of going directly from the ↵ | Rafael Espindola | 2009-12-01 | 1 | -0/+5 |
| | | | | | | | | command line to the input file. We passed <built-in> on the way in, so we should pass it again on the way out. llvm-svn: 90250 | ||||
* | Define __SIG_ATOMIC_WIDTH__ for use in stdint.h. | Ken Dyck | 2009-11-22 | 1 | -0/+1 |
| | | | | llvm-svn: 89597 | ||||
* | Define __WCHAR_WIDTH__ for use in stdint.h. | Ken Dyck | 2009-11-19 | 1 | -0/+1 |
| | | | | llvm-svn: 89353 | ||||
* | Add __WINT_WIDTH__ to paramaterize the limits of WINT_MIN and WINT_MAX in | Ken Dyck | 2009-11-19 | 1 | -0/+1 |
| | | | | | | stdint.h. llvm-svn: 89348 | ||||
* | Add __SIZE_WIDTH__ to eventually replace __SIZE_TYPE__ in stdint.h. | Ken Dyck | 2009-11-19 | 1 | -0/+1 |
| | | | | llvm-svn: 89346 | ||||
* | Restore __INTMAX_TYPE__, __UINTMAX_TYPE__, __PTRDIFF_TYPE__, and | Ken Dyck | 2009-11-19 | 1 | -0/+4 |
| | | | | | | | __INTPTR_TYPE__ as the last is used in the test/CodeGen/const-init.c and all could potentially be in use in the wild. My apologies. llvm-svn: 89345 | ||||
* | Remove __PTRDIFF_TYPE__ as it is no longer needed by stdint.h. It has been | Ken Dyck | 2009-11-19 | 1 | -1/+0 |
| | | | | | | replaced with __PTRDIFF_WIDTH__. llvm-svn: 89344 | ||||
* | Add __PTRDIFF_WIDTH__ macro to eventually replace __PTRDIFF_TYPE__ in stdint.h. | Ken Dyck | 2009-11-19 | 1 | -0/+1 |
| | | | | llvm-svn: 89342 | ||||
* | Remove __INTPTR_TYPE__ as it is no longer needed by stdint.h, which uses | Ken Dyck | 2009-11-19 | 1 | -1/+0 |
| | | | | | | __INTPTR_WIDTH__ instead. llvm-svn: 89340 | ||||
* | Predefine __INTPTR_WIDTH__ for future use in stdint.h. | Ken Dyck | 2009-11-18 | 1 | -0/+1 |
| | | | | llvm-svn: 89231 | ||||
* | Remove the __INTMAX_TYPE__ and __UINTMAX_TYPE__ built-in macros as they are no | Ken Dyck | 2009-11-18 | 1 | -2/+0 |
| | | | | | | longer used by stdint.h. llvm-svn: 89230 | ||||
* | Predefine __INTMAX_WIDTH__ for the future parameterization of INTMAX macros in | Ken Dyck | 2009-11-18 | 1 | -0/+8 |
| | | | | | | stdint.h. llvm-svn: 89203 | ||||
* | Simplify PreprocessorOptions, it doesn't need abstracted field access. | Daniel Dunbar | 2009-11-17 | 1 | -14/+12 |
| | | | | llvm-svn: 89047 | ||||
* | Parameterize the constant-generating macros in stdint.h with new built-in | Ken Dyck | 2009-11-16 | 1 | -1/+9 |
| | | | | | | | __INTn_C_SUFFIX__ macros that are defined for types with corresponding constant suffixes (i.e. long and long long). llvm-svn: 88914 | ||||
* | Generalize stdint.h for non-8-bit-multiple types, patch by | Chris Lattner | 2009-11-12 | 1 | -18/+21 |
| | | | | | | | | | | Ken Dyck! "This adds definitions for types of 8-bit multiples from 8 to 64 to stdint.h and rationalizes the selection of types for the exact-width definitions in InitPreprocessor.cpp." llvm-svn: 86977 | ||||
* | do not store wchar/char16/char32/intmax width/alignment info | Chris Lattner | 2009-11-12 | 1 | -5/+1 |
| | | | | | | | into TargetInfo, just derive this based on the underlying type. This prevents them from getting out of synch, patch by Ken Dyck! llvm-svn: 86976 | ||||
* | Tweak PCH -include handling to make sure it matches the name as would be present | Daniel Dunbar | 2009-11-11 | 1 | -4/+9 |
| | | | | | | in the predefines buffer. llvm-svn: 86903 | ||||
* | Always initialize the header search object as part of InitializePreprocessor; | Daniel Dunbar | 2009-11-11 | 1 | -1/+7 |
| | | | | | | not doing this has little to no utility. llvm-svn: 86883 | ||||
* | PreprocessorOptions: Get rid of unnecessary 'isPTH' flag for include entries. | Daniel Dunbar | 2009-11-10 | 1 | -3/+3 |
| | | | | llvm-svn: 86757 | ||||
* | Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fix | Daniel Dunbar | 2009-11-07 | 1 | -5/+6 |
| | | | | | | | | filenames. Also, move InitializePreprocessor to Utils.h. llvm-svn: 86335 | ||||
* | clean up integer preprocessor type definitions, patch by Ken Dyck! | Chris Lattner | 2009-11-05 | 1 | -10/+22 |
| | | | | llvm-svn: 86177 |