forked from OSchip/llvm-project
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. llvm-svn: 164460
This commit is contained in:
parent
23b5b171eb
commit
08f1ebb2b7
|
@ -1416,7 +1416,7 @@ Tool &Generic_GCC::SelectTool(const Compilation &C,
|
|||
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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue