[llvm] r282654 - [LTO] Expose getComdatSymbolTable() to linkers.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 28 17:29:33 PDT 2016


Author: davide
Date: Wed Sep 28 19:29:33 2016
New Revision: 282654

URL: http://llvm.org/viewvc/llvm-project?rev=282654&view=rev
Log:
[LTO] Expose getComdatSymbolTable() to linkers.

Modified:
    llvm/trunk/include/llvm/LTO/LTO.h

Modified: llvm/trunk/include/llvm/LTO/LTO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LTO/LTO.h?rev=282654&r1=282653&r2=282654&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LTO/LTO.h (original)
+++ llvm/trunk/include/llvm/LTO/LTO.h Wed Sep 28 19:29:33 2016
@@ -249,6 +249,11 @@ public:
   MemoryBufferRef getMemoryBufferRef() const {
     return Obj->getMemoryBufferRef();
   }
+
+  // FIXME: We should fix lld and not expose this information.
+  StringMap<Comdat> &getComdatSymbolTable() {
+    return Obj->getModule().getComdatSymbolTable();
+  }
 };
 
 /// This class wraps an output stream for a native object. Most clients should




More information about the llvm-commits mailing list