forked from OSchip/llvm-project
Revert r111082. No warnings for this common pattern.
llvm-svn: 111102
This commit is contained in:
parent
499e6e49e7
commit
d0fcc9a818
|
@ -45,7 +45,7 @@ namespace {
|
||||||
|
|
||||||
#include "llvm/Instruction.def"
|
#include "llvm/Instruction.def"
|
||||||
|
|
||||||
void visitInstruction(Instruction &I) ATTRIBUTE_UNUSED {
|
void visitInstruction(Instruction &I) {
|
||||||
errs() << "Instruction Count does not know about " << I;
|
errs() << "Instruction Count does not know about " << I;
|
||||||
llvm_unreachable(0);
|
llvm_unreachable(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,8 +135,8 @@ namespace {
|
||||||
/// @brief A class for maintaining the slot number definition
|
/// @brief A class for maintaining the slot number definition
|
||||||
/// as a placeholder for the actual definition for forward constants defs.
|
/// as a placeholder for the actual definition for forward constants defs.
|
||||||
class ConstantPlaceHolder : public ConstantExpr {
|
class ConstantPlaceHolder : public ConstantExpr {
|
||||||
ConstantPlaceHolder() ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
|
ConstantPlaceHolder(); // DO NOT IMPLEMENT
|
||||||
void operator=(const ConstantPlaceHolder &) ATTRIBUTE_UNUSED;//NOT IMPLEMENT
|
void operator=(const ConstantPlaceHolder &); // DO NOT IMPLEMENT
|
||||||
public:
|
public:
|
||||||
// allocate space for exactly one operand
|
// allocate space for exactly one operand
|
||||||
void *operator new(size_t s) {
|
void *operator new(size_t s) {
|
||||||
|
|
|
@ -78,8 +78,8 @@ class LinkerTypeMap : public AbstractTypeUser {
|
||||||
typedef DenseMap<const Type*, PATypeHolder> TheMapTy;
|
typedef DenseMap<const Type*, PATypeHolder> TheMapTy;
|
||||||
TheMapTy TheMap;
|
TheMapTy TheMap;
|
||||||
|
|
||||||
LinkerTypeMap(const LinkerTypeMap&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
|
LinkerTypeMap(const LinkerTypeMap&); // DO NOT IMPLEMENT
|
||||||
void operator=(const LinkerTypeMap&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
|
void operator=(const LinkerTypeMap&); // DO NOT IMPLEMENT
|
||||||
public:
|
public:
|
||||||
LinkerTypeMap() {}
|
LinkerTypeMap() {}
|
||||||
~LinkerTypeMap() {
|
~LinkerTypeMap() {
|
||||||
|
|
|
@ -19,13 +19,12 @@
|
||||||
#include "llvm/MC/MCExpr.h"
|
#include "llvm/MC/MCExpr.h"
|
||||||
#include "llvm/MC/MCInst.h"
|
#include "llvm/MC/MCInst.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include "llvm/Support/Compiler.h"
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class X86MCCodeEmitter : public MCCodeEmitter {
|
class X86MCCodeEmitter : public MCCodeEmitter {
|
||||||
X86MCCodeEmitter(const X86MCCodeEmitter &) ATTRIBUTE_UNUSED; // DONT IMPLEMENT
|
X86MCCodeEmitter(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
|
||||||
void operator=(const X86MCCodeEmitter &) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
|
void operator=(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
|
||||||
const TargetMachine &TM;
|
const TargetMachine &TM;
|
||||||
const TargetInstrInfo &TII;
|
const TargetInstrInfo &TII;
|
||||||
MCContext &Ctx;
|
MCContext &Ctx;
|
||||||
|
|
|
@ -151,8 +151,8 @@ namespace {
|
||||||
SmallSetVector<const Type *, 16> Types;
|
SmallSetVector<const Type *, 16> Types;
|
||||||
|
|
||||||
// Disallow copying.
|
// Disallow copying.
|
||||||
TypeSet(const TypeSet &) ATTRIBUTE_UNUSED;
|
TypeSet(const TypeSet &);
|
||||||
TypeSet &operator=(const TypeSet &) ATTRIBUTE_UNUSED;
|
TypeSet &operator=(const TypeSet &);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Verifier : public FunctionPass, public InstVisitor<Verifier> {
|
struct Verifier : public FunctionPass, public InstVisitor<Verifier> {
|
||||||
|
|
|
@ -556,12 +556,12 @@
|
||||||
// A macro to disallow operator=
|
// A macro to disallow operator=
|
||||||
// This should be used in the private: declarations for a class.
|
// This should be used in the private: declarations for a class.
|
||||||
#define GTEST_DISALLOW_ASSIGN_(type)\
|
#define GTEST_DISALLOW_ASSIGN_(type)\
|
||||||
void operator=(type const &) GTEST_ATTRIBUTE_UNUSED_
|
void operator=(type const &)
|
||||||
|
|
||||||
// A macro to disallow copy constructor and operator=
|
// A macro to disallow copy constructor and operator=
|
||||||
// This should be used in the private: declarations for a class.
|
// This should be used in the private: declarations for a class.
|
||||||
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)\
|
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)\
|
||||||
type(type const &) GTEST_ATTRIBUTE_UNUSED_;\
|
type(type const &);\
|
||||||
GTEST_DISALLOW_ASSIGN_(type)
|
GTEST_DISALLOW_ASSIGN_(type)
|
||||||
|
|
||||||
// Tell the compiler to warn about unused return values for functions declared
|
// Tell the compiler to warn about unused return values for functions declared
|
||||||
|
|
Loading…
Reference in New Issue