diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-01-13 20:36:46 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-01-13 20:36:46 +0000 |
commit | 9606a57b6f2c43bf438a958fdffea1de60f6b2b7 (patch) | |
tree | 0cf060b5da54d8bf86d9b41fc4a2a1156768a5f3 /lib/Driver/Driver.cpp | |
parent | e40141542d96f556b5c1b5e3b8acca8f11c27527 (diff) |
rename DefaultHostTriple into DefaultTargetTriple
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index ec344e0c78..ce4a89e724 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -47,13 +47,13 @@ using namespace clang::driver; using namespace clang; Driver::Driver(StringRef ClangExecutable, - StringRef DefaultHostTriple, + StringRef DefaultTargetTriple, StringRef DefaultImageName, bool IsProduction, DiagnosticsEngine &Diags) : Opts(createDriverOptTable()), Diags(Diags), ClangExecutable(ClangExecutable), UseStdLib(true), - DefaultHostTriple(DefaultHostTriple), DefaultImageName(DefaultImageName), + DefaultTargetTriple(DefaultTargetTriple), DefaultImageName(DefaultImageName), DriverTitle("clang \"gcc-compatible\" driver"), Host(0), CCPrintOptionsFilename(0), CCPrintHeadersFilename(0), @@ -306,7 +306,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) { // FIXME: We shouldn't overwrite the default host triple here, but we have // nowhere else to put this currently. if (const Arg *A = Args->getLastArg(options::OPT_ccc_host_triple)) - DefaultHostTriple = A->getValue(*Args); + DefaultTargetTriple = A->getValue(*Args); if (const Arg *A = Args->getLastArg(options::OPT_ccc_install_dir)) Dir = InstalledDir = A->getValue(*Args); for (arg_iterator it = Args->filtered_begin(options::OPT_B), @@ -320,7 +320,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) { if (Args->hasArg(options::OPT_nostdlib)) UseStdLib = false; - Host = GetHostInfo(DefaultHostTriple.c_str()); + Host = GetHostInfo(DefaultTargetTriple.c_str()); // Perform the default argument translations. DerivedArgList *TranslatedArgs = TranslateInputArgs(*Args); @@ -1507,7 +1507,7 @@ static bool isPathExecutable(llvm::sys::Path &P, bool WantFile) { std::string Driver::GetProgramPath(const char *Name, const ToolChain &TC, bool WantFile) const { - std::string TargetSpecificExecutable(DefaultHostTriple + "-" + Name); + std::string TargetSpecificExecutable(DefaultTargetTriple + "-" + Name); // Respect a limited subset of the '-Bprefix' functionality in GCC by // attempting to use this prefix when lokup up program paths. for (Driver::prefix_list::const_iterator it = PrefixDirs.begin(), |