Drop support for LLVM < 3.5

This allows to clean up the code a little.
This commit is contained in:
Martin 2015-10-30 22:11:35 +01:00
parent 8eab25f2fa
commit 60d676e2a1
57 changed files with 35 additions and 1019 deletions

View file

@ -1988,11 +1988,7 @@ private:
#if IN_LLVM
char *toCppMangle(Dsymbol *s)
{
#if LDC_LLVM_VER >= 305
const bool isTargetWindowsMSVC = global.params.targetTriple.isWindowsMSVCEnvironment();
#else
const bool isTargetWindowsMSVC = global.params.targetTriple.getOS() == llvm::Triple::Win32;
#endif
const bool isTargetWindowsMSVC = global.params.targetTriple.isWindowsMSVCEnvironment();
if (isTargetWindowsMSVC)
{
VisualCPPMangler v(!global.params.is64bit);