diff options
author | serge-sans-paille <sguelton@redhat.com> | 2021-03-03 09:58:31 +0100 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2021-03-15 18:28:26 +0100 |
commit | 4aa510be78a75a4da82657fe433016f00dad0784 (patch) | |
tree | 38bdb170bedc731d94d00b7c0568ffb1c9206093 /clang/lib/Basic/IdentifierTable.cpp | |
parent | 9628cb1feef63d764c57fd0652016f9188000e2f (diff) | |
download | llvm-4aa510be78a75a4da82657fe433016f00dad0784.zip llvm-4aa510be78a75a4da82657fe433016f00dad0784.tar.gz llvm-4aa510be78a75a4da82657fe433016f00dad0784.tar.bz2 |
Allow __ieee128 as an alias to __float128 on ppc
This matches gcc behavior.
Differential Revision: https://reviews.llvm.org/D97846
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | clang/lib/Basic/IdentifierTable.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp index 51c6e02..cedc94a 100644 --- a/clang/lib/Basic/IdentifierTable.cpp +++ b/clang/lib/Basic/IdentifierTable.cpp @@ -227,6 +227,9 @@ void IdentifierTable::AddKeywords(const LangOptions &LangOpts) { if (LangOpts.DeclSpecKeyword) AddKeyword("__declspec", tok::kw___declspec, KEYALL, LangOpts, *this); + if (LangOpts.IEEE128) + AddKeyword("__ieee128", tok::kw___float128, KEYALL, LangOpts, *this); + // Add the 'import' contextual keyword. get("import").setModulesImport(true); } |