diff options
author | Petr Hosek <phosek@chromium.org> | 2018-08-08 22:23:57 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-08-08 22:23:57 +0000 |
commit | 7b2745447783faa5f94b6f31377fba9284b2e321 (patch) | |
tree | 2c8132ec5bd8ff83b9bd368fa91331e3f20ec8fd /clang/test/Frontend/windows-exceptions.cpp | |
parent | f8937c8406987341411b2399de91b718d546a230 (diff) | |
download | bcm5719-llvm-7b2745447783faa5f94b6f31377fba9284b2e321.tar.gz bcm5719-llvm-7b2745447783faa5f94b6f31377fba9284b2e321.zip |
[ADT] Normalize empty triple components
LLVM triple normalization is handling "unknown" and empty components
differently; for example given "x86_64-unknown-linux-gnu" and
"x86_64-linux-gnu" which should be equivalent, triple normalization
returns "x86_64-unknown-linux-gnu" and "x86_64--linux-gnu". autoconf's
config.sub returns "x86_64-unknown-linux-gnu" for both
"x86_64-linux-gnu" and "x86_64-unknown-linux-gnu". This changes the
triple normalization to behave the same way, replacing empty triple
components with "unknown".
This addresses PR37129.
Differential Revision: https://reviews.llvm.org/D50219
llvm-svn: 339294
Diffstat (limited to 'clang/test/Frontend/windows-exceptions.cpp')
-rw-r--r-- | clang/test/Frontend/windows-exceptions.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/Frontend/windows-exceptions.cpp b/clang/test/Frontend/windows-exceptions.cpp index 56316872be4..5aac32857c9 100644 --- a/clang/test/Frontend/windows-exceptions.cpp +++ b/clang/test/Frontend/windows-exceptions.cpp @@ -18,10 +18,10 @@ // RUN: %clang_cc1 -triple x86_64--windows-gnu -fsyntax-only -fseh-exceptions %s // RUN: %clang_cc1 -triple x86_64--windows-gnu -fsyntax-only -fsjlj-exceptions %s -// MSVC-X86-DWARF: error: invalid exception model 'fdwarf-exceptions' for target 'i686--windows-msvc' -// MSVC-X86-SEH: error: invalid exception model 'fseh-exceptions' for target 'i686--windows-msvc' -// MSVC-X86-SJLJ: error: invalid exception model 'fsjlj-exceptions' for target 'i686--windows-msvc' +// MSVC-X86-DWARF: error: invalid exception model 'fdwarf-exceptions' for target 'i686-unknown-windows-msvc' +// MSVC-X86-SEH: error: invalid exception model 'fseh-exceptions' for target 'i686-unknown-windows-msvc' +// MSVC-X86-SJLJ: error: invalid exception model 'fsjlj-exceptions' for target 'i686-unknown-windows-msvc' -// MSVC-X64-DWARF: error: invalid exception model 'fdwarf-exceptions' for target 'x86_64--windows-msvc' -// MSVC-X64-SEH: error: invalid exception model 'fseh-exceptions' for target 'x86_64--windows-msvc' -// MSVC-X64-SJLJ: error: invalid exception model 'fsjlj-exceptions' for target 'x86_64--windows-msvc' +// MSVC-X64-DWARF: error: invalid exception model 'fdwarf-exceptions' for target 'x86_64-unknown-windows-msvc' +// MSVC-X64-SEH: error: invalid exception model 'fseh-exceptions' for target 'x86_64-unknown-windows-msvc' +// MSVC-X64-SJLJ: error: invalid exception model 'fsjlj-exceptions' for target 'x86_64-unknown-windows-msvc' |