[LTO] Add a FIXME, we shouldn't expose getComdat().
authorDavide Italiano <davide@freebsd.org>
Thu, 29 Sep 2016 00:31:45 +0000 (00:31 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 29 Sep 2016 00:31:45 +0000 (00:31 +0000)
Thanks to Peter for the suggestion.

llvm-svn: 282655

llvm/include/llvm/LTO/LTO.h

index 8455021..e885c93 100644 (file)
@@ -175,6 +175,8 @@ public:
       // FIXME: Expose a thread-local flag for module asm symbols.
       return GV && GV->isThreadLocal();
     }
+
+    //FIXME: We shouldn't expose this information.
     Expected<const Comdat *> getComdat() const {
       if (!GV)
         return nullptr;
@@ -191,6 +193,7 @@ public:
         return GO->getComdat();
       return nullptr;
     }
+
     uint64_t getCommonSize() const {
       assert(Flags & object::BasicSymbolRef::SF_Common);
       if (!GV)