diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-03-01 17:40:53 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-03-01 17:40:53 +0000 |
commit | cfe9af250f466e7e38becea4428990448ae07737 (patch) | |
tree | 6547b809bfd6930763f1ef13df9a8fb8a4449784 /lib/Frontend/CompilerInvocation.cpp | |
parent | 1c51b1ca1fb835d8ee172b5804d66864ab3a0167 (diff) |
Implement -mrtd which sets the StdCall calling convention to be the default
one.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 21d0cac282..bf4d6cd86a 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1475,6 +1475,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.SinglePrecisionConstants = Args.hasArg(OPT_cl_single_precision_constant); Opts.FastRelaxedMath = Args.hasArg(OPT_cl_fast_relaxed_math); Opts.OptimizeSize = 0; + Opts.MRTD = Args.hasArg(OPT_mrtd); // FIXME: Eliminate this dependency. unsigned Opt = getOptimizationLevel(Args, IK, Diags); |