aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineCodeEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-20 03:44:39 +0000
committerChris Lattner <sabre@nondot.org>2004-11-20 03:44:39 +0000
commit47012c0c711fd10901fb30643def557af7bbb4a9 (patch)
tree844c9eaf7fc2dc552426dc59955e8d9fc19fd71d /lib/CodeGen/MachineCodeEmitter.cpp
parentfab11a711021768cd3cf30f699bf4adf26fdaccf (diff)
downloadexternal_llvm-47012c0c711fd10901fb30643def557af7bbb4a9.zip
external_llvm-47012c0c711fd10901fb30643def557af7bbb4a9.tar.gz
external_llvm-47012c0c711fd10901fb30643def557af7bbb4a9.tar.bz2
Add getCurrentPCOffset() and addRelocation() methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r--lib/CodeGen/MachineCodeEmitter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index d9e8c88..fde6969 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -47,10 +47,15 @@ namespace {
<< (void*) Ptr << ") ";
}
+ void addRelocation(const MachineRelocation &MR) {
+ std::cout << "<relocation> ";
+ }
+
uint64_t getGlobalValueAddress(GlobalValue *V) { return 0; }
uint64_t getGlobalValueAddress(const char *Name) { return 0; }
uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
uint64_t getCurrentPCValue() { return 0; }
+ uint64_t getCurrentPCOffset() { return 0; }
// forceCompilationOf - Force the compilation of the specified function, and
// return its address, because we REALLY need the address now.
@@ -157,6 +162,13 @@ namespace {
uint64_t getCurrentPCValue() {
return MCE.getCurrentPCValue();
}
+ uint64_t getCurrentPCOffset() {
+ return MCE.getCurrentPCOffset();
+ }
+ void addRelocation(const MachineRelocation &MR) {
+ return MCE.addRelocation(MR);
+ }
+
// forceCompilationOf - Force the compilation of the specified function, and
// return its address, because we REALLY need the address now.
//