Comments and indentation.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 10 Nov 2008 23:26:16 +0000 (23:26 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 10 Nov 2008 23:26:16 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59007 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index 221d9a5c8ec10497b55bcbe49fdb5bc22d2df591..d7348dd30fe264f76691df56ec782b74c5c4635e 100644 (file)
@@ -196,7 +196,7 @@ void *JITResolver::getGlobalValueIndirectSym(GlobalValue *GV, void *GVAddress) {
   void *&IndirectSym = state.getGlobalToIndirectSymMap(locked)[GV];
   if (IndirectSym) return IndirectSym;
 
-  // Otherwise, codegen a new lazy pointer.
+  // Otherwise, codegen a new indirect symbol.
   IndirectSym = TheJIT->getJITInfo().emitGlobalValueIndirectSym(GV, GVAddress,
                                                      *TheJIT->getCodeEmitter());
 
@@ -576,7 +576,7 @@ namespace {
   private:
     void *getPointerToGlobal(GlobalValue *GV, void *Reference, bool NoNeedStub);
     void *getPointerToGVIndirectSym(GlobalValue *V, void *Reference,
-                                   bool NoNeedStub);
+                                    bool NoNeedStub);
     unsigned addSizeOfGlobal(const GlobalVariable *GV, unsigned Size);
     unsigned addSizeOfGlobalsInConstantVal(const Constant *C, unsigned Size);
     unsigned addSizeOfGlobalsInInitializer(const Constant *Init, unsigned Size);
@@ -619,7 +619,7 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference,
 }
 
 void *JITEmitter::getPointerToGVIndirectSym(GlobalValue *V, void *Reference,
-                                        bool DoesntNeedStub) {
+                                            bool NoNeedStub) {
   // Make sure GV is emitted first.
   // FIXME: For now, if the GV is an external function we force the JIT to
   // compile it so the indirect symbol will contain the fully resolved address.