diff options
| author | Bernard Ogden <bogden@arm.com> | 2013-12-12 13:27:15 +0000 |
|---|---|---|
| committer | Bernard Ogden <bogden@arm.com> | 2013-12-12 13:27:15 +0000 |
| commit | f6ba17d340ff07c2e9b5c49ac1a83bfad279327d (patch) | |
| tree | 95f8097f60ec06b6b7fa3efad0e19558a2a610e7 /clang/lib/Driver/Tools.cpp | |
| parent | 3156176c8cc4df23bdad8136b1f382eed6a63a91 (diff) | |
| download | bcm5719-llvm-f6ba17d340ff07c2e9b5c49ac1a83bfad279327d.tar.gz bcm5719-llvm-f6ba17d340ff07c2e9b5c49ac1a83bfad279327d.zip | |
Simple refactoring to eliminate single-use local variable
llvm-svn: 197154
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 04f8e8ca5f8..74cd3937752 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -4466,14 +4466,12 @@ const char *arm::getARMCPUForMArch(const ArgList &Args, } // Handle -march=native. - std::string NativeMArch; if (MArch == "native") { std::string CPU = llvm::sys::getHostCPUName(); if (CPU != "generic") { // Translate the native cpu into the architecture. The switch below will // then chose the minimum cpu for that arch. - NativeMArch = std::string("arm") + arm::getLLVMArchSuffixForARM(CPU); - MArch = NativeMArch; + MArch = std::string("arm") + arm::getLLVMArchSuffixForARM(CPU); } } |

