summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-01-23 01:18:43 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-01-23 01:18:43 +0000
commit64afcb4c6bae43bf1161be280f2425e2da132824 (patch)
treef4a07792afcd7700c6c23278e9cc4abf7fb154e6 /lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
parentf7b1a34e47cee07082261a549ea574f57bcece46 (diff)
downloadbcm5719-llvm-64afcb4c6bae43bf1161be280f2425e2da132824.tar.gz
bcm5719-llvm-64afcb4c6bae43bf1161be280f2425e2da132824.zip
Move everything over to TargetInfo.
I really would have liked to split this patch up, but it would greatly complicate the lld-core and lld drivers having to deal with both {Reader,Writer}Option and TargetInfo. llvm-svn: 173217
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp')
-rw-r--r--lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp b/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
index 6186aa2d234..5d21a88ad5d 100644
--- a/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
+++ b/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
@@ -12,6 +12,7 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
+#include "llvm/ADT/Triple.h"
#include "llvm/Support/ErrorHandling.h"
@@ -28,18 +29,16 @@ KindHandler::KindHandler() {
KindHandler::~KindHandler() {
}
-KindHandler *KindHandler::makeHandler(WriterOptionsMachO::Architecture arch) {
+KindHandler *KindHandler::makeHandler(llvm::Triple::ArchType arch) {
switch( arch ) {
- case WriterOptionsMachO::arch_x86_64:
+ case llvm::Triple::x86_64:
return new KindHandler_x86_64();
- break;
- case WriterOptionsMachO::arch_x86:
+ case llvm::Triple::x86:
return new KindHandler_x86();
- break;
- case WriterOptionsMachO::arch_armv6:
- case WriterOptionsMachO::arch_armv7:
+ case llvm::Triple::arm:
return new KindHandler_arm();
- break;
+ default:
+ llvm_unreachable("Unknown arch");
}
}
OpenPOWER on IntegriCloud