summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-11-05 20:14:16 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-11-05 20:14:16 +0000
commited4e2950bc31eefd1fb4b4c40b99c1e712876734 (patch)
treec5865578d0c9062c84e197366ce539721ff9c8a9 /clang/lib/Driver
parent866ad5d8eaef7d45c20ff7f057bb7a8d0833109d (diff)
downloadbcm5719-llvm-ed4e2950bc31eefd1fb4b4c40b99c1e712876734.tar.gz
bcm5719-llvm-ed4e2950bc31eefd1fb4b4c40b99c1e712876734.zip
Adding -fshort-wchar option.
llvm-svn: 86167
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/Tools.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 808c31c6482..c35ad7c5ea5 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -922,6 +922,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("-fsigned-char=0");
}
+ // -fshort-wchar default varies depending on platform; only
+ // pass if specified.
+ if (Arg *A = Args.getLastArg(options::OPT_fshort_wchar)) {
+ if (A->getOption().matches(options::OPT_fshort_wchar))
+ CmdArgs.push_back("-fshort-wchar");
+ }
+
// -fno-pascal-strings is default, only pass non-default. If the tool chain
// happened to translate to -mpascal-strings, we want to back translate here.
//
OpenPOWER on IntegriCloud