diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-22 20:26:39 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-22 20:26:39 +0000 |
commit | 63408e848bdb8a2a37d51a0ebcc233f849ae498e (patch) | |
tree | 46aac29a16033f7dae649c299479a4cc75e83ef9 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f1223bdec0cbd7e6a44a8f60e45ce1cf9753e38c (diff) | |
download | bcm5719-llvm-63408e848bdb8a2a37d51a0ebcc233f849ae498e.tar.gz bcm5719-llvm-63408e848bdb8a2a37d51a0ebcc233f849ae498e.zip |
Support for -fno-constant-cfstrings option - wip.
llvm-svn: 102112
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f9cfd73c7e6..3386eff5bac 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -549,6 +549,8 @@ static void LangOptsToArgs(const LangOptions &Opts, } if (Opts.ObjCGCBitmapPrint) Res.push_back("-print-ivar-layout"); + if (Opts.NoConstantCFStrings) + Res.push_back("-fno-constant-cfstrings"); if (!Opts.AccessControl) Res.push_back("-fno-access-control"); if (!Opts.CharIsSigned) @@ -1180,6 +1182,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, if (Args.hasArg(OPT_print_ivar_layout)) Opts.ObjCGCBitmapPrint = 1; + if (Args.hasArg(OPT_fno_constant_cfstrings)) + Opts.NoConstantCFStrings = 1; if (Args.hasArg(OPT_faltivec)) Opts.AltiVec = 1; |