aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-17 05:41:32 +0000
committerChris Lattner <sabre@nondot.org>2010-11-17 05:41:32 +0000
commitb75c651e22a63907b727664f044283bf9c9fb885 (patch)
tree532e53f22daf7c5f4da284da1acfbd5fb2fa11ad /lib/Target/ARM/ARMAsmBackend.cpp
parent2567eec4233d58a2a0cbdcafca9420452689b395 (diff)
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmBackend.cpp13
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) {