Final pass of minor cleanups for MachineInstr
authorChris Lattner <sabre@nondot.org>
Thu, 4 May 2006 19:36:09 +0000 (19:36 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 4 May 2006 19:36:09 +0000 (19:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28110 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp

index 48db32012102c0ce9e860da68776c4e97fc2d10f..9cf2455f29ffc5e2cc73db38164157cf061dd6c7 100644 (file)
@@ -71,11 +71,11 @@ public:
 
 private:
   union {
-    GlobalValue *GV;    // LLVM global for MO_GlobalAddress.
-    int64_t immedVal;   // Constant value for an explicit constant
-    MachineBasicBlock *MBB;     // For MO_MachineBasicBlock type
-    const char *SymbolName;     // For MO_ExternalSymbol type
-    unsigned RegNo;            // For MO_Register number for an explicit register
+    GlobalValue *GV;          // For MO_GlobalAddress.
+    MachineBasicBlock *MBB;   // For MO_MachineBasicBlock.
+    const char *SymbolName;   // For MO_ExternalSymbol.
+    unsigned RegNo;           // For MO_Register.
+    int64_t immedVal;         // For MO_Immediate and MO_*Index.
   } contents;
 
   char flags;                   // see bit field definitions above
index 495da5edfcfb353cfb17c72cd6288a2a616bd65e..03af3689ef0ca65d837451f797d28ab7d1acdc5b 100644 (file)
@@ -9,14 +9,10 @@
 //
 // Methods common to all machine instructions.
 //
-// FIXME: Now that MachineInstrs have parent pointers, they should always
-// print themselves using their MachineFunction's TargetMachine.
-//
 //===----------------------------------------------------------------------===//
 
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/Value.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Target/MRegisterInfo.h"