]> granicus.if.org Git - clang/commitdiff
[Driver] NFC: Remove duplicate call to getLibGccType
authorCullen Rhodes <cullen.rhodes@arm.com>
Fri, 4 Oct 2019 08:26:37 +0000 (08:26 +0000)
committerCullen Rhodes <cullen.rhodes@arm.com>
Fri, 4 Oct 2019 08:26:37 +0000 (08:26 +0000)
Reviewed By: saugustine

Differential Revision: https://reviews.llvm.org/D68380

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373712 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/CommonArgs.cpp

index 3d2fa8534080e275b45f85748001c5fb0a737ee2..18b182424095f9645a1db37c6389b7570e10d78a 100644 (file)
@@ -1186,7 +1186,6 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D,
   case ToolChain::UNW_None:
     return;
   case ToolChain::UNW_Libgcc: {
-    LibGccType LGT = getLibGccType(D, Args);
     if (LGT == LibGccType::StaticLibGcc)
       CmdArgs.push_back("-lgcc_eh");
     else