mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-28 14:46:39 +00:00
Don't put classes in headers into anonymous namespaces.
You want ODR violations? That's how you get ODR violations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
50c72a431d
commit
8cbe47dfe5
@ -46,6 +46,7 @@ public:
|
||||
: MCELFObjectTargetWriter(/*Is64Bit*/ false, OSABI, ELF::EM_ARM,
|
||||
/*HasRelocationAddend*/ false) {}
|
||||
};
|
||||
} // end anonymous namespace
|
||||
|
||||
const MCFixupKindInfo &ARMAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {
|
||||
const static MCFixupKindInfo InfosLE[ARM::NumTargetFixupKinds] = {
|
||||
@ -163,7 +164,6 @@ void ARMAsmBackend::handleAssemblerFlag(MCAssemblerFlag Flag) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} // end anonymous namespace
|
||||
|
||||
unsigned ARMAsmBackend::getRelaxedOpcode(unsigned Op) const {
|
||||
bool HasThumb2 = STI->getFeatureBits()[ARM::FeatureThumb2];
|
||||
|
@ -11,12 +11,12 @@
|
||||
#define LLVM_LIB_TARGET_ARM_ARMASMBACKEND_H
|
||||
|
||||
#include "MCTargetDesc/ARMFixupKinds.h"
|
||||
#include "MCTargetDesc/ARMMCTargetDesc.h"
|
||||
#include "llvm/MC/MCAsmBackend.h"
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
#include "llvm/Support/TargetRegistry.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
namespace llvm {
|
||||
|
||||
class ARMAsmBackend : public MCAsmBackend {
|
||||
const MCSubtargetInfo *STI;
|
||||
@ -74,6 +74,6 @@ public:
|
||||
void setIsThumb(bool it) { isThumbMode = it; }
|
||||
bool isLittle() const { return IsLittleEndian; }
|
||||
};
|
||||
} // end anonymous namespace
|
||||
} // end namespace llvm
|
||||
|
||||
#endif
|
||||
|
@ -10,11 +10,10 @@
|
||||
#ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
|
||||
#define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
|
||||
|
||||
#include "ARMAsmBackend.h"
|
||||
#include "llvm/Support/MachO.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
namespace llvm {
|
||||
class ARMAsmBackendDarwin : public ARMAsmBackend {
|
||||
const MCRegisterInfo &MRI;
|
||||
public:
|
||||
@ -33,6 +32,6 @@ public:
|
||||
uint32_t generateCompactUnwindEncoding(
|
||||
ArrayRef<MCCFIInstruction> Instrs) const override;
|
||||
};
|
||||
}
|
||||
} // end namespace llvm
|
||||
|
||||
#endif
|
||||
|
@ -10,6 +10,7 @@
|
||||
#ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDWINCOFF_H
|
||||
#define LLVM_LIB_TARGET_ARM_ARMASMBACKENDWINCOFF_H
|
||||
|
||||
#include "ARMAsmBackend.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
@ -21,9 +21,8 @@
|
||||
#include "llvm/CodeGen/SelectionDAGISel.h"
|
||||
#include "llvm/IR/Intrinsics.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
namespace llvm {
|
||||
|
||||
class LLVM_LIBRARY_VISIBILITY NVPTXDAGToDAGISel : public SelectionDAGISel {
|
||||
const NVPTXTargetMachine &TM;
|
||||
@ -95,6 +94,6 @@ private:
|
||||
bool ChkMemSDNodeAddressSpace(SDNode *N, unsigned int spN) const;
|
||||
|
||||
};
|
||||
}
|
||||
} // end namespace llvm
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user