Driver & AST: Implement support for -fpack-struct and -fpack-struct= command

line options.
 - <rdar://problem/10120602>, PR9631

llvm-svn: 141211
This commit is contained in:
Daniel Dunbar
2011-10-05 21:04:55 +00:00
parent e7abae0442
commit 096ed290a1
7 changed files with 34 additions and 0 deletions

View File

@@ -1728,6 +1728,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Args.hasArg(OPT_fobjc_default_synthesize_properties);
Opts.CatchUndefined = Args.hasArg(OPT_fcatch_undefined_behavior);
Opts.EmitAllDecls = Args.hasArg(OPT_femit_all_decls);
Opts.PackStruct = Args.getLastArgIntValue(OPT_fpack_struct, 0, Diags);
Opts.PICLevel = Args.getLastArgIntValue(OPT_pic_level, 0, Diags);
Opts.Static = Args.hasArg(OPT_static_define);
Opts.DumpRecordLayouts = Args.hasArg(OPT_fdump_record_layouts);