[Orc] Clean up a comment.
authorLang Hames <lhames@gmail.com>
Wed, 21 Oct 2015 20:13:41 +0000 (20:13 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 21 Oct 2015 20:13:41 +0000 (20:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250940 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h

index 93ba02b38706639f53ddd87e27b020dac76f38b8..a5286ff9adde68fc46a502daf94fea5a6c1ccd79 100644 (file)
@@ -67,10 +67,10 @@ private:
         } else
           return nullptr;
       case Emitting:
-        // Calling "emit" can trigger external symbol lookup (e.g. to check for
-        // pre-existing definitions of common-symbol), but it will never find in
-        // this module that it would not have found already, so return null from
-        // here.
+        // Calling "emit" can trigger a recursive call to 'find' (e.g. to check
+        // for pre-existing definitions of common-symbol), but any symbol in
+        // this module would already have been found internally (in the
+        // RuntimeDyld that did the lookup), so just return a nullptr here.
         return nullptr;
       case Emitted:
         return B.findSymbolIn(Handle, Name, ExportedSymbolsOnly);