1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Match change in MachineCodeEmitter prototype.

llvm-svn: 18009
This commit is contained in:
Chris Lattner 2004-11-19 20:56:46 +00:00
parent f9b6c00d88
commit 2978400c23
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ namespace {
}
uint64_t getGlobalValueAddress(GlobalValue *V) { return 0; }
uint64_t getGlobalValueAddress(const std::string &Name) { return 0; }
uint64_t getGlobalValueAddress(const char *Name) { return 0; }
uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
uint64_t getCurrentPCValue() { return 0; }
@ -148,7 +148,7 @@ namespace {
uint64_t getGlobalValueAddress(GlobalValue *V) {
return MCE.getGlobalValueAddress(V);
}
uint64_t getGlobalValueAddress(const std::string &Name) {
uint64_t getGlobalValueAddress(const char *Name) {
return MCE.getGlobalValueAddress(Name);
}
uint64_t getConstantPoolEntryAddress(unsigned Num) {

View File

@ -114,7 +114,7 @@ namespace {
virtual void emitWordAt(unsigned W, unsigned *Ptr);
virtual uint64_t getGlobalValueAddress(GlobalValue *V);
virtual uint64_t getGlobalValueAddress(const std::string &Name);
virtual uint64_t getGlobalValueAddress(const char *Name);
virtual uint64_t getConstantPoolEntryAddress(unsigned Entry);
virtual uint64_t getCurrentPCValue();
@ -224,7 +224,7 @@ uint64_t Emitter::getGlobalValueAddress(GlobalValue *V) {
return (intptr_t)TheJIT->getOrEmitGlobalVariable(cast<GlobalVariable>(V));
}
}
uint64_t Emitter::getGlobalValueAddress(const std::string &Name) {
uint64_t Emitter::getGlobalValueAddress(const char *Name) {
return (intptr_t)TheJIT->getPointerToNamedFunction(Name);
}