There is a lot of char* being passed around in the clang driver. At least part of that seems to be because we have an enum (llvm::Triple::ArchType) that can distinguish an ARM from an X86, but we don't have an enum that can distinguish a ARMv6 form an ARMv7 for example.
The attached patches add the enum llvm::Triple::CPUArch and use that to replace a long if chain in clang. I think it can be used in more places, but this should be sufficient to illustrate the idea. Cheers, Rafael
llvm.patch
Description: Binary data
clang.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
