diff options
author | Eric Christopher <echristo@apple.com> | 2011-10-25 07:13:06 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-10-25 07:13:06 +0000 |
commit | e88c4513157cc551ed8080b1e3b3b875a9a570e1 (patch) | |
tree | 34e40c61937075c37510935be5c9ce3885dc2066 | |
parent | a01c71191c93691e592c030cc48764e52272eea5 (diff) |
Allow the -fno-operator-names option to be passed down to the rest
of the compiler.
Fixes PR10198
Patch by Brian Foley!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142913 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Driver/Options.td | 1 | ||||
-rw-r--r-- | lib/Driver/Tools.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 813509705c..fea6e4fd45 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -392,6 +392,7 @@ def fno_objc_default_synthesize_properties def fno_objc_exceptions: Flag<"-fno-objc-exceptions">, Group<f_Group>; def fno_objc_legacy_dispatch : Flag<"-fno-objc-legacy-dispatch">, Group<f_Group>; def fno_omit_frame_pointer : Flag<"-fno-omit-frame-pointer">, Group<f_Group>; +def fno_operator_names : Flag<"-fno-operator-names">, Group<f_Group>; def fno_pascal_strings : Flag<"-fno-pascal-strings">, Group<f_Group>; def fno_rtti : Flag<"-fno-rtti">, Group<f_Group>; def fno_short_enums : Flag<"-fno-short-enums">, Group<f_Group>; diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 11af01c651..75fb710dcb 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1704,6 +1704,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Args.AddLastArg(CmdArgs, options::OPT_femit_all_decls); Args.AddLastArg(CmdArgs, options::OPT_fheinous_gnu_extensions); Args.AddLastArg(CmdArgs, options::OPT_flimit_debug_info); + Args.AddLastArg(CmdArgs, options::OPT_fno_operator_names); if (getToolChain().SupportsProfiling()) Args.AddLastArg(CmdArgs, options::OPT_pg); |