Match change in MachineCodeEmitter prototype.
authorChris Lattner <sabre@nondot.org>
Fri, 19 Nov 2004 20:56:46 +0000 (20:56 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 Nov 2004 20:56:46 +0000 (20:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18009 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineCodeEmitter.cpp
lib/ExecutionEngine/JIT/JITEmitter.cpp

index 224c8c37ccf6777e4dce1c285d22ae833b55f55c..d9e8c88b9ee48991589c2cf3d51a884804b088c7 100644 (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) {
index 878c3c33bb5b81f14de6d0ab63d845e6ba1f9389..8c1de8806f16b5d8a5e81d8276d1357dc8143580 100644 (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);
 }