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 | ed2a9eb820db896a8201a38f9eef6df14ad55256 (patch) | |
tree | 880f3ec966fae3efbfb05f9a8e60362166c16f55 /clang/Lex | |
parent | 8308f60d5130e05f13b4696d98441b2080248d85 (diff) | |
download | bcm5719-llvm-ed2a9eb820db896a8201a38f9eef6df14ad55256.tar.gz bcm5719-llvm-ed2a9eb820db896a8201a38f9eef6df14ad55256.zip |
resolve a fixme, by moving __builtin_va_list to a more logical
place and making it correctly parameterized on the target.
llvm-svn: 42830
Diffstat (limited to 'clang/Lex')
-rw-r--r-- | clang/Lex/Preprocessor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp index 7deea405485..78e4496a5d5 100644 --- a/clang/Lex/Preprocessor.cpp +++ b/clang/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); |