[PATCH] D27073: Object: Extract a ModuleSymbolTable class from IRObjectFile.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 21:37:55 PST 2016


mehdi_amini added inline comments.


================
Comment at: llvm/lib/Object/ModuleSymbolTable.cpp:40
 
-IRObjectFile::IRObjectFile(MemoryBufferRef Object, std::unique_ptr<Module> Mod)
-    : SymbolicFile(Binary::ID_IR, Object), M(std::move(Mod)) {
-  Mang.reset(new Mangler());
-
+void ModuleSymbolTable::addModule(Module *M) {
   for (Function &F : *M)
----------------
We should assert that every module added have the same triple as the others.


https://reviews.llvm.org/D27073





More information about the llvm-commits mailing list