Give SparcV9CodeEmitter a head-of-file comment and a PassName.
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 15 Apr 2004 20:23:13 +0000 (20:23 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 15 Apr 2004 20:23:13 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9CodeEmitter.h

index d21345ec041b03ee50b22eaba0e0c216a39c72c1..5a932a843d401de91a44699a9fc44ba67caa3902 100644 (file)
@@ -7,7 +7,10 @@
 // 
 //===----------------------------------------------------------------------===//
 // 
-// TODO: Need a description here.
+// Target-specific portions of the machine code emitter for the SparcV9.
+// This class interfaces with the JIT's Emitter in order to turn MachineInstrs
+// into words of binary machine code. Its code is partially generated by
+// TableGen's CodeEmitterGenerator.
 //
 //===----------------------------------------------------------------------===//
 
@@ -40,6 +43,8 @@ public:
   SparcV9CodeEmitter(TargetMachine &T, MachineCodeEmitter &M);
   ~SparcV9CodeEmitter();
 
+  const char *getPassName() const { return "SparcV9 Machine Code Emitter"; }
+
   /// runOnMachineFunction - emits the given machine function to memory.
   ///
   bool runOnMachineFunction(MachineFunction &F);