diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-05-11 03:57:49 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-05-11 03:57:49 +0000 |
commit | b710a938d6949e113860d81cd1bd0ebc941c8cad (patch) | |
tree | 78b0b2bcdde08113c19b2a2a6b22b4f3c2678842 /clang/lib/CodeGen/CGException.cpp | |
parent | 30f058aa9d924f0c52aa5207328e9ba6374ce6b4 (diff) | |
download | bcm5719-llvm-b710a938d6949e113860d81cd1bd0ebc941c8cad.tar.gz bcm5719-llvm-b710a938d6949e113860d81cd1bd0ebc941c8cad.zip |
Give isCompatibleWithMSVC a better interface
We now use an enum which maps the marketing name (almost always a year)
to the major version number.
llvm-svn: 236967
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 6e0bdd24a75..a518443889d 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -60,7 +60,7 @@ llvm::Constant *CodeGenModule::getTerminateFn() { name = "_ZSt9terminatev"; } else if (getLangOpts().CPlusPlus && getTarget().getCXXABI().isMicrosoft()) { - if (getLangOpts().isCompatibleWithMSVC(19)) + if (getLangOpts().isCompatibleWithMSVC(LangOptions::MSVC2015)) name = "__std_terminate"; else name = "\01?terminate@@YAXXZ"; |