summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-13 05:30:22 +0000
committerChris Lattner <sabre@nondot.org>2009-08-13 05:30:22 +0000
commitb2d3169d96ee780e6b8f43230e36e41d97ed3140 (patch)
tree3d2eb4e18adac3e51f6d742691da1f4a7865d429 /lib/Target/PowerPC/PPCTargetMachine.cpp
parent7c4efa6808b737b2bfc7c79872b9c16f566a7d8a (diff)
downloadllvm-b2d3169d96ee780e6b8f43230e36e41d97ed3140.tar.gz
llvm-b2d3169d96ee780e6b8f43230e36e41d97ed3140.tar.bz2
llvm-b2d3169d96ee780e6b8f43230e36e41d97ed3140.tar.xz
fix a minor fixme. When building with SL and later tools, the ".eh" symbols
don't need to be exported from the .o files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--lib/Target/PowerPC/PPCTargetMachine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
index 41f4699fc0..a0d4fdb776 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -23,10 +23,9 @@ using namespace llvm;
static const TargetAsmInfo *createTargetAsmInfo(const Target &T,
const StringRef &TT) {
Triple TheTriple(TT);
- bool isPPC64 = TheTriple.getArch() == Triple::ppc64;
if (TheTriple.getOS() == Triple::Darwin)
- return new PPCDarwinTargetAsmInfo(isPPC64);
- return new PPCLinuxTargetAsmInfo(isPPC64);
+ return new PPCDarwinTargetAsmInfo(TheTriple);
+ return new PPCLinuxTargetAsmInfo(TheTriple);
}