Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | InitializePreprocessor cannot fail. | Daniel Dunbar | 2009-11-04 | 1 | -4/+1 |
| | | | | llvm-svn: 86048 | ||||
* | Move -undef flag into PreprocessorInitOptions | Daniel Dunbar | 2009-11-04 | 1 | -3/+2 |
| | | | | llvm-svn: 86047 | ||||
* | Implement support for the -undef command line option, patch by | Chris Lattner | 2009-11-03 | 1 | -3/+5 |
| | | | | | | Roman Divacky! PR5363 llvm-svn: 85932 | ||||
* | clean up namespace. | Chris Lattner | 2009-11-02 | 1 | -6/+3 |
| | | | | llvm-svn: 85826 | ||||
* | simplify intmax setup, patch by Ken Dyck! | Chris Lattner | 2009-10-29 | 1 | -15/+3 |
| | | | | llvm-svn: 85481 | ||||
* | hookize wint_t's definition, patch by Edward O'Callaghan (from PR5233). | Chris Lattner | 2009-10-21 | 1 | -2/+1 |
| | | | | llvm-svn: 84740 | ||||
* | Work-around wchar_t and __pragma problem in VC headers | John Thompson | 2009-10-16 | 1 | -2/+11 |
| | | | | llvm-svn: 84227 | ||||
* | Move the "needs exception support" logic to clang. This also fixes | Rafael Espindola | 2009-10-01 | 1 | -2/+3 |
| | | | | | | | -fno-exceptions in C++ code. We used to always define __EXCEPTIONS in C++. llvm-svn: 83199 | ||||
* | Non fragile ABI for GNU runtime. Patch bu David Chisnall. | Fariborz Jahanian | 2009-09-10 | 1 | -3/+0 |
| | | | | llvm-svn: 81462 | ||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -40/+40 |
| | | | | llvm-svn: 81346 | ||||
* | Don't use '%ll', this doesn't workin on Win32. | Daniel Dunbar | 2009-09-03 | 1 | -1/+3 |
| | | | | llvm-svn: 80933 | ||||
* | Define _GNU_SOURCE in C++ mode so that clang works with GNU libstdc++. | Eli Friedman | 2009-08-27 | 1 | -0/+2 |
| | | | | llvm-svn: 80289 | ||||
* | API changes to match llvm ToT. | Chris Lattner | 2009-08-23 | 1 | -1/+1 |
| | | | | llvm-svn: 79868 |