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/Parse/Parser.cpp | |
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/Parse/Parser.cpp')
-rw-r--r-- | clang/Parse/Parser.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/clang/Parse/Parser.cpp b/clang/Parse/Parser.cpp index fc5c4ae4f71..543aed8855d 100644 --- a/clang/Parse/Parser.cpp +++ b/clang/Parse/Parser.cpp @@ -230,25 +230,6 @@ void Parser::Initialize() { EnterScope(Scope::DeclScope); Actions.ActOnTranslationUnitScope(Tok.getLocation(), CurScope); - // Install builtin types. - // TODO: Move this someplace more useful. - { - const char *Dummy; - - //__builtin_va_list - DeclSpec DS; - bool Error = DS.SetStorageClassSpec(DeclSpec::SCS_typedef, SourceLocation(), - Dummy); - - // TODO: add a 'TST_builtin' type? - Error |= DS.SetTypeSpecType(DeclSpec::TST_int, SourceLocation(), Dummy); - assert(!Error && "Error setting up __builtin_va_list!"); - - Declarator D(DS, Declarator::FileContext); - D.SetIdentifier(PP.getIdentifierInfo("__builtin_va_list"),SourceLocation()); - Actions.ActOnDeclarator(CurScope, D, 0); - } - if (Tok.is(tok::eof) && !getLang().CPlusPlus) // Empty source file is an extension in C Diag(Tok, diag::ext_empty_source_file); |