diff options
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r-- | lib/Target/ARM/ARMAsmBackend.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index 86b1e069a7..75a5511e6c 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -22,15 +22,12 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetRegistry.h" -#include "llvm/Target/TargetAsmBackend.h" using namespace llvm; namespace { class ARMAsmBackend : public TargetAsmBackend { public: - ARMAsmBackend(const Target &T) - : TargetAsmBackend(T) { - } + ARMAsmBackend(const Target &T) : TargetAsmBackend(T) {} bool MayNeedRelaxation(const MCInst &Inst) const; @@ -42,6 +39,7 @@ public: return 4; } }; +} // end anonymous namespace bool ARMAsmBackend::MayNeedRelaxation(const MCInst &Inst) const { // FIXME: Thumb targets, different move constant targets.. @@ -64,7 +62,6 @@ bool ARMAsmBackend::WriteNopData(uint64_t Count, MCObjectWriter *OW) const { OW->Write8(0); return true; } -} // end anonymous namespace namespace { // FIXME: This should be in a separate file. @@ -105,13 +102,12 @@ void ELFARMAsmBackend::ApplyFixup(const MCFixup &Fixup, MCDataFragment &DF, assert(0 && "ELFARMAsmBackend::ApplyFixup() unimplemented"); } +namespace { // FIXME: This should be in a separate file. class DarwinARMAsmBackend : public ARMAsmBackend { MCMachOObjectFormat Format; - public: - DarwinARMAsmBackend(const Target &T) - : ARMAsmBackend(T) { + DarwinARMAsmBackend(const Target &T) : ARMAsmBackend(T) { HasScatteredSymbols = true; } @@ -140,6 +136,7 @@ public: return false; } }; +} // end anonymous namespace static unsigned getFixupKindNumBytes(unsigned Kind) { switch (Kind) { |