From: Eli Bendersky Date: Tue, 4 Dec 2012 18:38:10 +0000 (+0000) Subject: Adapt to LLVM commit 169291 which streamlines the usage of NaCl/NativeClient X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7c92039389b5786156ee138e69f5680d47755bf;p=platform%2Fupstream%2Fllvm.git Adapt to LLVM commit 169291 which streamlines the usage of NaCl/NativeClient in the triple. llvm-svn: 169292 --- diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 6a30ca8..c917f4f 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -4453,7 +4453,7 @@ static TargetInfo *AllocateTarget(const std::string &T) { return new BitrigTargetInfo(T); case llvm::Triple::RTEMS: return new RTEMSTargetInfo(T); - case llvm::Triple::NativeClient: + case llvm::Triple::NaCl: return new NaClTargetInfo(T); default: return new ARMTargetInfo(T); @@ -4524,7 +4524,7 @@ static TargetInfo *AllocateTarget(const std::string &T) { case llvm::Triple::le32: switch (os) { - case llvm::Triple::NativeClient: + case llvm::Triple::NaCl: return new NaClTargetInfo(T); default: return NULL; @@ -4629,7 +4629,7 @@ static TargetInfo *AllocateTarget(const std::string &T) { return new HaikuX86_32TargetInfo(T); case llvm::Triple::RTEMS: return new RTEMSX86_32TargetInfo(T); - case llvm::Triple::NativeClient: + case llvm::Triple::NaCl: return new NaClTargetInfo(T); default: return new X86_32TargetInfo(T); @@ -4660,7 +4660,7 @@ static TargetInfo *AllocateTarget(const std::string &T) { return new MinGWX86_64TargetInfo(T); case llvm::Triple::Win32: // This is what Triple.h supports now. return new VisualStudioWindowsX86_64TargetInfo(T); - case llvm::Triple::NativeClient: + case llvm::Triple::NaCl: return new NaClTargetInfo(T); default: return new X86_64TargetInfo(T); diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 8f2e089..02f451a 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -1387,7 +1387,7 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, } else if ((k == BuiltinType::Float || k == BuiltinType::Double) || (k == BuiltinType::LongDouble && getContext().getTargetInfo().getTriple().getOS() == - llvm::Triple::NativeClient)) { + llvm::Triple::NaCl)) { Current = SSE; } else if (k == BuiltinType::LongDouble) { Lo = X87; @@ -1476,7 +1476,7 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, else if (ET == getContext().DoubleTy || (ET == getContext().LongDoubleTy && getContext().getTargetInfo().getTriple().getOS() == - llvm::Triple::NativeClient)) + llvm::Triple::NaCl)) Lo = Hi = SSE; else if (ET == getContext().LongDoubleTy) Current = ComplexX87; @@ -4357,7 +4357,7 @@ const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() { Kind = ARMABIInfo::AAPCS_VFP; switch (Triple.getOS()) { - case llvm::Triple::NativeClient: + case llvm::Triple::NaCl: return *(TheTargetCodeGenInfo = new NaClARMTargetCodeGenInfo(Types, Kind)); default: @@ -4429,7 +4429,7 @@ const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() { case llvm::Triple::MinGW32: case llvm::Triple::Cygwin: return *(TheTargetCodeGenInfo = new WinX86_64TargetCodeGenInfo(Types)); - case llvm::Triple::NativeClient: + case llvm::Triple::NaCl: return *(TheTargetCodeGenInfo = new NaClX86_64TargetCodeGenInfo(Types, HasAVX)); default: return *(TheTargetCodeGenInfo = new X86_64TargetCodeGenInfo(Types,