]> granicus.if.org Git - llvm/commitdiff
Add methods for stub function generation
authorChris Lattner <sabre@nondot.org>
Thu, 8 May 2003 21:54:18 +0000 (21:54 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 May 2003 21:54:18 +0000 (21:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineCodeEmitter.cpp

index dc2d0d658be051aba8258e0734a8a3bd1fc7b643..270a7b9038999652ced239945c87b64d869a67ef 100644 (file)
@@ -21,6 +21,13 @@ namespace {
     void startBasicBlock(MachineBasicBlock &BB) {
       std::cout << "\n--- Basic Block: " << BB.getBasicBlock()->getName()<<"\n";
     }
+
+    void startFunctionStub(Function &F, unsigned StubSize) {
+      std::cout << "\n--- Function stub for function: " << F.getName() << "\n";
+    }
+    void finishFunctionStub(Function &F) {
+      std::cout << "\n";
+    }
     
     void emitByte(unsigned char B) {
       std::cout << "0x" << std::hex << (unsigned int)B << std::dec << " ";