[cfe-commits] r164460 - in /cfe/trunk: lib/Driver/ToolChains.cpp test/Driver/clang-translation.c
Rafael Espindola
rafael.espindola at gmail.com
Sat Sep 22 08:04:11 PDT 2012
Author: rafael
Date: Sat Sep 22 10:04:11 2012
New Revision: 164460
URL: http://llvm.org/viewvc/llvm-project?rev=164460&view=rev
Log:
Fix pr13749. There is still a lot of code using getArchName that should be
using getArch, but I will try to fix them one at time to add tests.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
cfe/trunk/test/Driver/clang-translation.c
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=164460&r1=164459&r2=164460&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sat Sep 22 10:04:11 2012
@@ -1416,7 +1416,7 @@
bool Generic_GCC::IsUnwindTablesDefault() const {
// FIXME: Gross; we should probably have some separate target
// definition, possibly even reusing the one in clang.
- return getArchName() == "x86_64";
+ return getArch() == llvm::Triple::x86_64;
}
const char *Generic_GCC::GetDefaultRelocationModel() const {
Modified: cfe/trunk/test/Driver/clang-translation.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/clang-translation.c?rev=164460&r1=164459&r2=164460&view=diff
==============================================================================
--- cfe/trunk/test/Driver/clang-translation.c (original)
+++ cfe/trunk/test/Driver/clang-translation.c Sat Sep 22 10:04:11 2012
@@ -91,3 +91,10 @@
// PPCE5500: "-cc1"
// PPCE5500: "-target-cpu" "e5500"
+// RUN: %clang -target amd64-unknown-openbsd5.2 -### -S %s 2>&1 | \
+// RUN: FileCheck -check-prefix=AMD64 %s
+// AMD64: clang
+// AMD64: "-cc1"
+// AMD64: "-triple"
+// AMD64: "amd64-unknown-openbsd5.2"
+// AMD64: "-munwind-tables"
More information about the cfe-commits
mailing list