diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-28 01:21:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-28 01:21:55 +0000 |
commit | 9baa9ad7c725a8981ecb980e2f899992d1bc6772 (patch) | |
tree | dccd551fb2b2ceea2b91a5de12a371f5d1c5b97d /llvm/lib/CodeGen/MachineCodeForInstruction.cpp | |
parent | 8494d08688d40fda9d5c547c05494a22d95be456 (diff) | |
download | bcm5719-llvm-9baa9ad7c725a8981ecb980e2f899992d1bc6772.tar.gz bcm5719-llvm-9baa9ad7c725a8981ecb980e2f899992d1bc6772.zip |
Inline some methods from .cpp files into .h files, minor cleanups
llvm-svn: 4313
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeForInstruction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCodeForInstruction.cpp | 41 |
1 files changed, 11 insertions, 30 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp index 61563992241..f3080628ee8 100644 --- a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp +++ b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp @@ -1,18 +1,17 @@ //===-- MachineCodeForInstruction.cpp -------------------------------------===// // -// Representation of the sequence of machine instructions created -// for a single VM instruction. Additionally records information -// about hidden and implicit values used by the machine instructions: -// about hidden values used by the machine instructions: +// Representation of the sequence of machine instructions created for a single +// VM instruction. Additionally records information about hidden and implicit +// values used by the machine instructions: about hidden values used by the +// machine instructions: // -// "Temporary values" are intermediate values used in the machine -// instruction sequence, but not in the VM instruction -// Note that such values should be treated as pure SSA values with -// no interpretation of their operands (i.e., as a TmpInstruction -// object which actually represents such a value). +// "Temporary values" are intermediate values used in the machine instruction +// sequence, but not in the VM instruction Note that such values should be +// treated as pure SSA values with no interpretation of their operands (i.e., as +// a TmpInstruction object which actually represents such a value). // -// (2) "Implicit uses" are values used in the VM instruction but not in -// the machine instruction sequence +// (2) "Implicit uses" are values used in the VM instruction but not in the +// machine instruction sequence // //===----------------------------------------------------------------------===// @@ -20,7 +19,7 @@ #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/InstrSelection.h" -static AnnotationID MCFI_AID( +AnnotationID MCFI_AID( AnnotationManager::getID("CodeGen::MachineCodeForInstruction")); static Annotation *CreateMCFI(AnnotationID AID, const Annotable *, void *) { @@ -36,19 +35,6 @@ static struct MCFIInitializer { } RegisterCreateMCFI; -MachineCodeForInstruction& -MachineCodeForInstruction::get(const Instruction *I){ - assert(I != NULL); - return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID); -} - - -void -MachineCodeForInstruction::destroy(const Instruction *I) { - I->deleteAnnotation(MCFI_AID); -} - - void MachineCodeForInstruction::dropAllReferences() { @@ -57,11 +43,6 @@ MachineCodeForInstruction::dropAllReferences() } -MachineCodeForInstruction::MachineCodeForInstruction() - : Annotation(MCFI_AID) -{} - - MachineCodeForInstruction::~MachineCodeForInstruction() { // Let go of all uses in temp. instructions |