Alpha doesn't have a native f32 extload instruction.
[oota-llvm.git] / lib / CodeGen / MachineCodeEmitter.cpp
index d9e8c88b9ee48991589c2cf3d51a884804b088c7..248b06a999bc5c52692bda76c3a00648f8a41fce 100644 (file)
@@ -28,11 +28,11 @@ namespace {
     void finishFunction(MachineFunction &F) {
       std::cout << "\n";
     }
-    void startFunctionStub(const Function &F, unsigned StubSize) {
-      std::cout << "\n--- Function stub for function: " << F.getName() << "\n";
+    void startFunctionStub(unsigned StubSize) {
+      std::cout << "\n--- Function stub:\n";
     }
-    void *finishFunctionStub(const Function &F) {
-      std::cout << "\n";
+    void *finishFunctionStub(const Function *F) {
+      std::cout << "\n--- End of stub for Function\n";
       return 0;
     }
     
@@ -47,19 +47,13 @@ namespace {
                 << (void*) Ptr << ") ";
     }
 
-    uint64_t getGlobalValueAddress(GlobalValue *V) { return 0; }
-    uint64_t getGlobalValueAddress(const char *Name) { return 0; }
+    void addRelocation(const MachineRelocation &MR) {
+      std::cout << "<relocation> ";
+    }
+
     uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
     uint64_t getCurrentPCValue() { return 0; }
-
-    // forceCompilationOf - Force the compilation of the specified function, and
-    // return its address, because we REALLY need the address now.
-    //
-    // FIXME: This is JIT specific!
-    //
-    virtual uint64_t forceCompilationOf(Function *F) {
-      return 0;
-    }
+    uint64_t getCurrentPCOffset() { return 0; }
   };
 
   class FilePrinterEmitter : public MachineCodeEmitter {
@@ -100,11 +94,11 @@ namespace {
       MCE.emitConstantPool(MCP);
     }
 
-    void startFunctionStub(const Function &F, unsigned StubSize) {
-      MCE.startFunctionStub(F, StubSize);
+    void startFunctionStub(unsigned StubSize) {
+      MCE.startFunctionStub(StubSize);
     }
 
-    void *finishFunctionStub(const Function &F) {
+    void *finishFunctionStub(const Function *F) {
       return MCE.finishFunctionStub(F);
     }
     
@@ -145,25 +139,17 @@ namespace {
     void emitWordAt(unsigned W, unsigned *Ptr) {
       MCE.emitWordAt(W, Ptr);
     }
-    uint64_t getGlobalValueAddress(GlobalValue *V) {
-      return MCE.getGlobalValueAddress(V);
-    }
-    uint64_t getGlobalValueAddress(const char *Name) {
-      return MCE.getGlobalValueAddress(Name);
-    }
     uint64_t getConstantPoolEntryAddress(unsigned Num) {
       return MCE.getConstantPoolEntryAddress(Num);
     }
     uint64_t getCurrentPCValue() {
       return MCE.getCurrentPCValue();
     }
-    // forceCompilationOf - Force the compilation of the specified function, and
-    // return its address, because we REALLY need the address now.
-    //
-    // FIXME: This is JIT specific!
-    //
-    virtual uint64_t forceCompilationOf(Function *F) {
-      return MCE.forceCompilationOf(F);
+    uint64_t getCurrentPCOffset() {
+      return MCE.getCurrentPCOffset();
+    }
+    void addRelocation(const MachineRelocation &MR) {
+      return MCE.addRelocation(MR);
     }
   };
 }