[llvm-commits] [llvm] r78670 - in /llvm/trunk/include/llvm: CodeGen/MachineOperand.h Support/SourceMgr.h
Dan Gohman
gohman at apple.com
Tue Aug 11 08:52:31 PDT 2009
Author: djg
Date: Tue Aug 11 10:52:30 2009
New Revision: 78670
URL: http://llvm.org/viewvc/llvm-project?rev=78670&view=rev
Log:
Use the default copy-ctor, copy-assignment, and destructor.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineOperand.h
llvm/trunk/include/llvm/Support/SourceMgr.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineOperand.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineOperand.h?rev=78670&r1=78669&r2=78670&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOperand.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineOperand.h Tue Aug 11 10:52:30 2009
@@ -119,12 +119,6 @@
TargetFlags = 0;
}
public:
- MachineOperand(const MachineOperand &M) {
- *this = M;
- }
-
- ~MachineOperand() {}
-
/// getType - Returns the MachineOperandType for this operand.
///
MachineOperandType getType() const { return (MachineOperandType)OpKind; }
@@ -448,20 +442,6 @@
Op.setTargetFlags(TargetFlags);
return Op;
}
- const MachineOperand &operator=(const MachineOperand &MO) {
- OpKind = MO.OpKind;
- IsDef = MO.IsDef;
- IsImp = MO.IsImp;
- IsKill = MO.IsKill;
- IsDead = MO.IsDead;
- IsUndef = MO.IsUndef;
- IsEarlyClobber = MO.IsEarlyClobber;
- SubReg = MO.SubReg;
- ParentMI = MO.ParentMI;
- Contents = MO.Contents;
- TargetFlags = MO.TargetFlags;
- return *this;
- }
friend class MachineInstr;
friend class MachineRegisterInfo;
Modified: llvm/trunk/include/llvm/Support/SourceMgr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SourceMgr.h?rev=78670&r1=78669&r2=78670&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SourceMgr.h (original)
+++ llvm/trunk/include/llvm/Support/SourceMgr.h Tue Aug 11 10:52:30 2009
@@ -145,17 +145,6 @@
const std::string &Msg, const std::string &LineStr)
: Filename(FN), LineNo(Line), ColumnNo(Col), Message(Msg),
LineContents(LineStr) {}
- SMDiagnostic(const SMDiagnostic &RHS) {
- operator=(RHS);
- }
-
- void operator=(const SMDiagnostic &E) {
- Filename = E.Filename;
- LineNo = E.LineNo;
- ColumnNo = E.ColumnNo;
- Message = E.Message;
- LineContents = E.LineContents;
- }
void Print(const char *ProgName, raw_ostream &S);
};
More information about the llvm-commits
mailing list