summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf6fcf39aed89bbbfacdfc04d0f55575bc82064e9 (patch)
tree73cbf749ed302774c261cc1288e67d19890aea8a /llvm/lib/CodeGen/MachineCodeEmitter.cpp
parent50e498fac6f8795b70888665cc356c8bf9601d75 (diff)
downloadbcm5719-llvm-f6fcf39aed89bbbfacdfc04d0f55575bc82064e9.tar.gz
bcm5719-llvm-f6fcf39aed89bbbfacdfc04d0f55575bc82064e9.zip
Add getCurrentPCOffset() and addRelocation() methods.
llvm-svn: 18034
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCodeEmitter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp
index d9e8c88b9ee..fde69697642 100644
--- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/llvm/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.
//
OpenPOWER on IntegriCloud