summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineCodeEmitter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-04 06:44:27 +0000
committerChris Lattner <sabre@nondot.org>2002-12-04 06:44:27 +0000
commit64ccc73593370f064081552c73aa814cb2287675 (patch)
treef9fa604954a3a53d1d7583d947ea71c37fd7f348 /include/llvm/CodeGen/MachineCodeEmitter.h
parent398b2f43fff924bdb092e77793149854e8e068c8 (diff)
downloadllvm-64ccc73593370f064081552c73aa814cb2287675.tar.gz
llvm-64ccc73593370f064081552c73aa814cb2287675.tar.bz2
llvm-64ccc73593370f064081552c73aa814cb2287675.tar.xz
Add support for direct global references
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineCodeEmitter.h')
-rw-r--r--include/llvm/CodeGen/MachineCodeEmitter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h
index f0e5e3f2cb..6f47726de4 100644
--- a/include/llvm/CodeGen/MachineCodeEmitter.h
+++ b/include/llvm/CodeGen/MachineCodeEmitter.h
@@ -13,6 +13,7 @@
class MachineFunction;
class MachineBasicBlock;
class Value;
+class GlobalValue;
struct MachineCodeEmitter {
virtual ~MachineCodeEmitter() {}
@@ -43,6 +44,12 @@ struct MachineCodeEmitter {
///
virtual void emitPCRelativeDisp(Value *V) {}
+ /// emitGlobalAddress - This callback is invoked when we need to write out the
+ /// address of a global value to machine code. This is important for indirect
+ /// calls as well as accessing global variables.
+ ///
+ virtual void emitGlobalAddress(GlobalValue *V) {}
+
/// createDebugMachineCodeEmitter - Return a dynamically allocated machine
/// code emitter, which just prints the opcodes and fields out the cout. This