From 8605082dacf3b10339cdf76d5fae979b58cb18dc Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 25 Oct 2011 07:13:06 +0000 Subject: [PATCH] Allow the -fno-operator-names option to be passed down to the rest of the compiler. Fixes PR10198 Patch by Brian Foley! llvm-svn: 142913 --- clang/include/clang/Driver/Options.td | 1 + clang/lib/Driver/Tools.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 813509705cc0..fea6e4fd45f4 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -392,6 +392,7 @@ def fno_objc_default_synthesize_properties def fno_objc_exceptions: Flag<"-fno-objc-exceptions">, Group; def fno_objc_legacy_dispatch : Flag<"-fno-objc-legacy-dispatch">, Group; def fno_omit_frame_pointer : Flag<"-fno-omit-frame-pointer">, Group; +def fno_operator_names : Flag<"-fno-operator-names">, Group; def fno_pascal_strings : Flag<"-fno-pascal-strings">, Group; def fno_rtti : Flag<"-fno-rtti">, Group; def fno_short_enums : Flag<"-fno-short-enums">, Group; diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 11af01c65101..75fb710dcb17 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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);