From 7e1812fa60d1387a459992b2a46df1a6b91d993a Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 12 Oct 2011 09:30:58 +0000 Subject: [PATCH] Add target info for Linux on PPC & Sparc. Patch by Hal Finkel! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141772 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index e63af6b18a..648ed73f0f 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3582,6 +3582,8 @@ static TargetInfo *AllocateTarget(const std::string &T) { if (Triple.isOSDarwin()) return new DarwinPPC32TargetInfo(T); switch (os) { + case llvm::Triple::Linux: + return new LinuxTargetInfo(T); case llvm::Triple::FreeBSD: return new FreeBSDTargetInfo(T); case llvm::Triple::NetBSD: @@ -3596,6 +3598,8 @@ static TargetInfo *AllocateTarget(const std::string &T) { if (Triple.isOSDarwin()) return new DarwinPPC64TargetInfo(T); switch (os) { + case llvm::Triple::Linux: + return new LinuxTargetInfo(T); case llvm::Triple::Lv2: return new PS3PPUTargetInfo(T); case llvm::Triple::FreeBSD: @@ -3616,6 +3620,8 @@ static TargetInfo *AllocateTarget(const std::string &T) { case llvm::Triple::sparc: switch (os) { + case llvm::Triple::Linux: + return new LinuxTargetInfo(T); case llvm::Triple::AuroraUX: return new AuroraUXSparcV8TargetInfo(T); case llvm::Triple::Solaris: -- 2.40.0