using getArch, but I will try to fix them one at time to add tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164460
91177308-0d34-0410-b5e6-
96231b3b80d8
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 {
// 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"