diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-03-23 19:26:05 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-03-23 19:26:05 +0000 |
| commit | c54920a123fd3049bdbaa5413c0d5d7e593a4668 (patch) | |
| tree | dc8d87a27d99a8fea4bf1d532b6fbb6530007382 /clang/lib/Driver | |
| parent | e5423a766b8953cf11ab2c1de0777afa709e73bf (diff) | |
| download | bcm5719-llvm-c54920a123fd3049bdbaa5413c0d5d7e593a4668.tar.gz bcm5719-llvm-c54920a123fd3049bdbaa5413c0d5d7e593a4668.zip | |
Fix and update comments and a small reformatting.
llvm-svn: 232997
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 41134725921..410a939d9b5 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1563,8 +1563,7 @@ static void AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args, CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU)); } -static void getX86TargetFeatures(const Driver & D, - const llvm::Triple &Triple, +static void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple, const ArgList &Args, std::vector<const char *> &Features) { if (Triple.getArchName() == "x86_64h") { @@ -1578,7 +1577,7 @@ static void getX86TargetFeatures(const Driver & D, Features.push_back("-fsgsbase"); } - // Add features to comply with gcc on Android + // Add features to be compatible with gcc for Android. if (Triple.getEnvironment() == llvm::Triple::Android) { if (Triple.getArch() == llvm::Triple::x86_64) { Features.push_back("+sse4.2"); @@ -1587,7 +1586,7 @@ static void getX86TargetFeatures(const Driver & D, Features.push_back("+ssse3"); } - // Set features according to the -arch flag on MSVC + // Set features according to the -arch flag on MSVC. if (Arg *A = Args.getLastArg(options::OPT__SLASH_arch)) { StringRef Arch = A->getValue(); bool ArchUsed = false; |

