diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-06-14 23:20:43 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-06-14 23:20:43 +0000 |
| commit | a860e6aebcdc7fd7edfe9aaa302d1e64fe6e493e (patch) | |
| tree | d7a4e92baeb65d32011b5c5a9982dcdc60b4558a /clang/lib/Driver/Tools.cpp | |
| parent | 192ed0b7eebcdf7905f595591496c22ced5a7042 (diff) | |
| download | bcm5719-llvm-a860e6aebcdc7fd7edfe9aaa302d1e64fe6e493e.tar.gz bcm5719-llvm-a860e6aebcdc7fd7edfe9aaa302d1e64fe6e493e.zip | |
Introduce a -cc1-level option to turn off related result type
inference, to be used (only) by the Objective-C rewriter.
llvm-svn: 133025
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index bc3ff6873b7..0e85a9fd4f2 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1542,6 +1542,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_fno_lax_vector_conversions)) CmdArgs.push_back("-fno-lax-vector-conversions"); + // -fobjc-infer-related-result-type is the default, except in the Objective-C + // rewriter. + if (IsRewriter) + CmdArgs.push_back("-fno-objc-infer-related-result-type"); + // Handle -fobjc-gc and -fobjc-gc-only. They are exclusive, and -fobjc-gc-only // takes precedence. const Arg *GCArg = Args.getLastArg(options::OPT_fobjc_gc_only); |

