summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-12-16 03:20:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-12-16 03:20:06 +0000
commit0c9d9fdd81a248369c822025dea11ddd0884944c (patch)
tree0732de3a40ff43349299cb306d47e68697b4f635 /llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp
parente4ec90e990e0d84282c79cae6e221a36b81d7665 (diff)
downloadbcm5719-llvm-0c9d9fdd81a248369c822025dea11ddd0884944c.tar.gz
bcm5719-llvm-0c9d9fdd81a248369c822025dea11ddd0884944c.zip
MC: Move target specific fixup info descriptors to TargetAsmBackend instead of
the MCCodeEmitter, which seems like a better organization. - Also, cleaned up some magic constants while in the area. llvm-svn: 121953
Diffstat (limited to 'llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp b/llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp
index 8037c4ee5c1..83156f5531f 100644
--- a/llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp
+++ b/llvm/lib/Target/MBlaze/MBlazeAsmBackend.cpp
@@ -47,6 +47,10 @@ public:
: TargetAsmBackend() {
}
+ unsigned getNumFixupKinds() const {
+ return 2;
+ }
+
bool MayNeedRelaxation(const MCInst &Inst) const;
void RelaxInstruction(const MCInst &Inst, MCInst &Res) const;
OpenPOWER on IntegriCloud