]> granicus.if.org Git - clang/commitdiff
Remove unused param from Linux::computeSysRoot().
authorSimon Atanasyan <simon@atanasyan.com>
Sat, 5 Oct 2013 14:37:55 +0000 (14:37 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Sat, 5 Oct 2013 14:37:55 +0000 (14:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h

index b1d65909cffca3c2bd85e7754c934cd0a61933ef..378c3b664c5c3fb95d96697030df192bfd39f431 100644 (file)
@@ -2210,7 +2210,7 @@ static StringRef getMultilibDir(const llvm::Triple &Triple,
 Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
   : Generic_ELF(D, Triple, Args) {
   llvm::Triple::ArchType Arch = Triple.getArch();
-  std::string SysRoot = computeSysRoot(Args);
+  std::string SysRoot = computeSysRoot();
 
   // Cross-compiling binutils and GCC installations (vanilla and openSUSE at
   // least) put various tools in a triple-prefixed directory off of the parent
@@ -2390,7 +2390,7 @@ void Linux::addClangTargetOptions(const ArgList &DriverArgs,
     CC1Args.push_back("-fuse-init-array");
 }
 
-std::string Linux::computeSysRoot(const ArgList &Args) const {
+std::string Linux::computeSysRoot() const {
   if (!getDriver().SysRoot.empty())
     return getDriver().SysRoot;
 
@@ -2408,7 +2408,7 @@ std::string Linux::computeSysRoot(const ArgList &Args) const {
 void Linux::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
                                       ArgStringList &CC1Args) const {
   const Driver &D = getDriver();
-  std::string SysRoot = computeSysRoot(DriverArgs);
+  std::string SysRoot = computeSysRoot();
 
   if (DriverArgs.hasArg(options::OPT_nostdinc))
     return;
index 12121bf69ab39faed705337618013b59a09149df..52cc45687900a7856f9dcc49f52ccc9be7071375 100644 (file)
@@ -591,7 +591,7 @@ private:
                                        const llvm::opt::ArgList &DriverArgs,
                                        llvm::opt::ArgStringList &CC1Args);
 
-  std::string computeSysRoot(const llvm::opt::ArgList &Args) const;
+  std::string computeSysRoot() const;
 };
 
 class LLVM_LIBRARY_VISIBILITY Hexagon_TC : public Linux {