diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-07 03:23:40 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-07 03:23:40 +0000 |
| commit | e8bd4e50e4a30e1a046b4f6a8768dce8569a982f (patch) | |
| tree | f1f0bf507723f5472aeb5b13f75f72fd41f9db5e /clang/lib/Driver/WindowsToolChain.cpp | |
| parent | e0b1dea26732f06cbee78984335ad703b1f6a5b0 (diff) | |
| download | bcm5719-llvm-e8bd4e50e4a30e1a046b4f6a8768dce8569a982f.tar.gz bcm5719-llvm-e8bd4e50e4a30e1a046b4f6a8768dce8569a982f.zip | |
Use getArch instead of getArchName.
The darwin change should be a nop since Triple::getArchTypeForDarwinArchName
doesn't know about amd64.
If things like amd64-mingw32 are to be rejected, we should print a error
earlier on instead of silently using the wrong abi.
Remove old comment that looks out of place, this is "in clang".
llvm-svn: 165368
Diffstat (limited to 'clang/lib/Driver/WindowsToolChain.cpp')
| -rw-r--r-- | clang/lib/Driver/WindowsToolChain.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Driver/WindowsToolChain.cpp b/clang/lib/Driver/WindowsToolChain.cpp index 6827034ef4c..080e0d65040 100644 --- a/clang/lib/Driver/WindowsToolChain.cpp +++ b/clang/lib/Driver/WindowsToolChain.cpp @@ -81,9 +81,7 @@ bool Windows::IsIntegratedAssemblerDefault() const { } bool Windows::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 *Windows::GetDefaultRelocationModel() const { |

