mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-30 03:28:50 +00:00
Add getCurrentPCOffset() and addRelocation() methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user