Rename isString -> isExternalSymbol; getString -> getExternalSymbol since these work...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 8 Nov 2008 07:37:34 +0000 (07:37 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 8 Nov 2008 07:37:34 +0000 (07:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58895 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineRelocation.h
lib/ExecutionEngine/JIT/JITEmitter.cpp

index 4b655ed787fa03e83886c961ba39399bd0d965bf..80cd035445bb19695a87e414b6879e06bf2d7728 100644 (file)
@@ -234,9 +234,9 @@ public:
     return AddrType == isBB;
   }
 
-  /// isString - Return true if this is a constant string.
+  /// isExternalSymbol - Return true if this is a constant string.
   ///
-  bool isString() const {
+  bool isExternalSymbol() const {
     return AddrType == isExtSym;
   }
 
@@ -287,8 +287,8 @@ public:
 
   /// getString - If this is a string value, return the string reference.
   ///
-  const char *getString() const {
-    assert(isString() && "This is not a string reference!");
+  const char *getExternalSymbol() const {
+    assert(isExternalSymbol() && "This is not an external symbol reference!");
     return Target.ExtSym;
   }
 
index ce3df8a783fbf3f0e08b1553d279f4e89c5b6c1d..9062cee84eeaf2a7b2be625fc1e517b402e5e3f1 100644 (file)
@@ -885,9 +885,9 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
       MachineRelocation &MR = Relocations[i];
       void *ResultPtr = 0;
       if (!MR.letTargetResolve()) {
-        if (MR.isString()) {
-          ResultPtr = TheJIT->getPointerToNamedFunction(MR.getString());
-          DOUT << "JIT: Map \'" << MR.getString() << "\' to ["
+        if (MR.isExternalSymbol()) {
+          ResultPtr = TheJIT->getPointerToNamedFunction(MR.getExternalSymbol());
+          DOUT << "JIT: Map \'" << MR.getExternalSymbol() << "\' to ["
                << ResultPtr << "]\n";  
 
           // If the target REALLY wants a stub for this function, emit it now.