diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-10 17:48:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-10 17:48:53 +0000 |
commit | d19144b244f86227fcc2b0da794929fe83968dd5 (patch) | |
tree | 0655fb93f90f170b2a4458254cc19ae1e774742d /Lex/Preprocessor.cpp | |
parent | 640db42222c9f3f6716cf4d4cbcabb0538c7f4d7 (diff) |
resolve a fixme, by moving __builtin_va_list to a more logical
place and making it correctly parameterized on the target.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/Preprocessor.cpp')
-rw-r--r-- | Lex/Preprocessor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lex/Preprocessor.cpp b/Lex/Preprocessor.cpp index 7deea40548..78e4496a5d 100644 --- a/Lex/Preprocessor.cpp +++ b/Lex/Preprocessor.cpp @@ -376,6 +376,12 @@ static void InitializePredefinedMacros(Preprocessor &PP, Buf.insert(Buf.end(), IDTypedef, IDTypedef+strlen(IDTypedef)); } + // Add __builtin_va_list typedef. + { + const char *VAList = PP.getTargetInfo().getVAListDeclaration(); + Buf.insert(Buf.end(), VAList, VAList+strlen(VAList)); + Buf.push_back('\n'); + } // Get the target #defines. PP.getTargetInfo().getTargetDefines(Buf); |