mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Inline some methods from .cpp files into .h files, minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -24,15 +24,22 @@ class MachineInstr;
|
||||
class Instruction;
|
||||
class Value;
|
||||
|
||||
extern AnnotationID MCFI_AID;
|
||||
|
||||
class MachineCodeForInstruction : public Annotation {
|
||||
std::vector<Value*> tempVec; // used by m/c instr but not VM instr
|
||||
std::vector<MachineInstr*> Contents;
|
||||
public:
|
||||
MachineCodeForInstruction();
|
||||
MachineCodeForInstruction() : Annotation(MCFI_AID) {}
|
||||
~MachineCodeForInstruction();
|
||||
|
||||
static MachineCodeForInstruction &get(const Instruction *I);
|
||||
static void destroy(const Instruction *I);
|
||||
static MachineCodeForInstruction &get(const Instruction *I) {
|
||||
assert(I != NULL);
|
||||
return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
|
||||
}
|
||||
static void destroy(const Instruction *I) {
|
||||
I->deleteAnnotation(MCFI_AID);
|
||||
}
|
||||
|
||||
// Access to underlying machine instructions...
|
||||
typedef std::vector<MachineInstr*>::iterator iterator;
|
||||
|
Reference in New Issue
Block a user