diff options
author | Fangrui Song <maskray@google.com> | 2020-01-06 10:16:28 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-06 15:51:02 -0800 |
commit | 6904cd948674df7f55843519695dbc95157a9429 (patch) | |
tree | 0a8a3c99830e0e6bbcb5ea07a960a6df51a4cca2 /clang/lib/AST/MicrosoftMangle.cpp | |
parent | c6fd16af2be98b49d663285e3808ecde61bec614 (diff) | |
download | bcm5719-llvm-6904cd948674df7f55843519695dbc95157a9429.tar.gz bcm5719-llvm-6904cd948674df7f55843519695dbc95157a9429.zip |
Add Triple::isX86()
Reviewed By: craig.topper, skan
Differential Revision: https://reviews.llvm.org/D72247
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 6b984955849..91413ae28e9 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -2701,9 +2701,7 @@ void MicrosoftCXXNameMangler::mangleType(const VectorType *T, Qualifiers Quals, // doesn't match the Intel types uses a custom mangling below. size_t OutSizeBefore = Out.tell(); if (!isa<ExtVectorType>(T)) { - llvm::Triple::ArchType AT = - getASTContext().getTargetInfo().getTriple().getArch(); - if (AT == llvm::Triple::x86 || AT == llvm::Triple::x86_64) { + if (getASTContext().getTargetInfo().getTriple().isX86()) { if (Width == 64 && ET->getKind() == BuiltinType::LongLong) { mangleArtificialTagType(TTK_Union, "__m64"); } else if (Width >= 128) { |