Get rid of NativeMARch
Depends on D2243
http://llvm-reviews.chandlerc.com/D2244
Files:
lib/Driver/Tools.cpp
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -4454,14 +4454,12 @@
}
// 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") + getLLVMArchSuffixForARM(CPU);
}
}
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -4454,14 +4454,12 @@
}
// 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") + getLLVMArchSuffixForARM(CPU);
}
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits