aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPC64JITInfo.h
blob: 9e994c26b6df6a2cc395afe95fa4adf1d4c35a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===- PPC64JITInfo.h - PowerPC/AIX impl. of the JIT interface -*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the PowerPC/AIX implementation of the TargetJITInfo class.
//
//===----------------------------------------------------------------------===//

#ifndef POWERPC_AIX_JITINFO_H
#define POWERPC_AIX_JITINFO_H

#include "PowerPCJITInfo.h"

namespace llvm {
  class TargetMachine;

  class PPC64JITInfo : public PowerPCJITInfo {
  public:
    PPC64JITInfo(TargetMachine &tm) : PowerPCJITInfo(tm) {}

    /// replaceMachineCodeForFunction - Make it so that calling the function
    /// whose machine code is at OLD turns into a call to NEW, perhaps by
    /// overwriting OLD with a branch to NEW.  This is used for self-modifying
    /// code.
    ///
    virtual void replaceMachineCodeForFunction(void *Old, void *New);
  };
}

#endif